[PATCH] md: define and use safe_put_page for md
authorNeilBrown <neilb@suse.de>
Fri, 6 Jan 2006 08:20:40 +0000 (00:20 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 6 Jan 2006 16:34:07 +0000 (08:34 -0800)
commit1345b1d8adbdeceb1c871d9a4af5e2a700b341c6
tree0da1db7d273752ad5281db415e9245f3f3a63383
parent7dd5d34c6c2da04e8cd0732e08b33cd3359e4bae
[PATCH] md: define and use safe_put_page for md

md sometimes call put_page on NULL pointers (treating it like kfree).  This is
not safe, so define and use a 'safe_put_page' which checks for NULL.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/bitmap.c
drivers/md/raid1.c
drivers/md/raid10.c
drivers/md/raid6main.c
include/linux/raid/md_k.h