]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
md: fix use after free when removing rdev via sysfs
authorDan Williams <dan.j.williams@intel.com>
Wed, 30 Apr 2008 07:52:28 +0000 (00:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:32 +0000 (08:29 -0700)
commit6a51830e14529063cb2685921e1177d9af50e49a
treed10f96946d36928e8b4cd021be67072321eb4943
parent7f1133cbf20bc308d73ba49f971180924e12119b
md: fix use after free when removing rdev via sysfs

rdev->mddev is no longer valid upon return from entry->store() when the
'remove' command is given.

Cc: <stable@kernel.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md.c