]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid5: use sysfs_notify_dirent_safe to avoid NULL pointer
authorJonathan Brassow <jbrassow@redhat.com>
Thu, 13 Jan 2011 22:14:33 +0000 (09:14 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 13 Jan 2011 22:14:33 +0000 (09:14 +1100)
commit464131d3e1d928a793d6e1e26e3a25d467096521
tree2a6fcff1e62c53ba0a95295cf02ae785b1efb501
parent4bebf3156aaa2f6435e8728271808507268baac6
md/raid5: use sysfs_notify_dirent_safe to avoid NULL pointer

With the module parameter 'start_dirty_degraded' set,
raid5_spare_active() previously called sysfs_notify_dirent() with a NULL
argument (rdev->sysfs_state) when a rebuild finished.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/raid5.c