]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: fix use after free when removing rdev via sysfs
authorDan Williams <dan.j.williams@intel.com>
Wed, 30 Apr 2008 18:55:30 +0000 (18:55 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 10 May 2008 04:40:43 +0000 (21:40 -0700)
commit9bd2c7ca75b0ebe05b0c67852d050720119983e7
treed4b3f8735356b9825648fdc9b1253460be3bd59a
parent30e525eb19e64ded33f84529314f0dc82766553a
md: fix use after free when removing rdev via sysfs

commit: 6a51830e14529063cb2685921e1177d9af50e49a upstream

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

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/md.c