Commit f652c521 authored by Arjan van de Ven's avatar Arjan van de Ven Committed by Linus Torvalds
Browse files

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.

Acked-by: default avatarTejun Heo <>
Signed-off-by: default avatarArjan van de Ven <>
Cc: Hugh Dickins <>
Cc: <>		[2.6.27.x]
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent a495a6d3
......@@ -395,7 +395,7 @@ void sg_miter_stop(struct sg_mapping_iter *miter)
kunmap_atomic(miter->addr, KM_BIO_SRC_IRQ);
} else
miter->page = NULL;
miter->addr = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment