Re: [PATCH] Fix kunmap() argument in sg_miter_stop

Tejun Heo
2008-11-16T05:16:48Z

Arjan van de Ven wrote:
> From 979d181d6199f639ba78c5eadf85857f6a9f3f89 Mon Sep 17 00:00:00 2001
> From: Arjan van de Ven <arjan@linux.intel.com>
> Date: Sat, 15 Nov 2008 11:23:58 -0800
> Subject: [PATCH] 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
> CC: htejun@gmail.com
>
> Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>

Argh... talk about confusing interfaces. Thanks a lot.

Acked-by: Tejun Heo <tj@kernel.org>

--
tejun