]> git.baikalelectronics.ru Git - kernel.git/commit
lib/scatterlist.c: fix kunmap() argument in sg_miter_stop()
authorArjan van de Ven <arjan@infradead.org>
Wed, 19 Nov 2008 23:36:19 +0000 (15:36 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Nov 2008 02:49:58 +0000 (18:49 -0800)
commit5c12928066ce44078aa17096f9c5b53fe89e9c52
tree8c82d64a8b9221460f9fb14bd7d3c2c863dd264a
parent9b9ad9ad9a7b24e2afba5cd72d52b855f739cf85
lib/scatterlist.c: fix kunmap() argument in sg_miter_stop()

kunmap() takes as argument the struct page that orginally got kmap()'d,
however the sg_miter_stop() function passed it the kernel virtual address
instead, resulting in weird stuff.

Somehow I ended up fixing this bug by accident while looking for a bug in
the same area.

Reported-by: kerneloops.org
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Hugh Dickins <hugh@veritas.com>
Cc: <stable@kernel.org> [2.6.27.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/scatterlist.c