]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
md: avoid dereferencing NULL pointer when accessing suspend_* sysfs attributes.
authorNeilBrown <neilb@suse.de>
Wed, 1 Jul 2009 01:14:04 +0000 (11:14 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 30 Jul 2009 23:06:07 +0000 (16:06 -0700)
commit0ec8973e2473b358976f838020e4b98cbb80181e
tree13d022f6768caae70c5bdf9b57dabebc81f6f163
parent9b4ad0edf130c29ff92c48d5a20e418aeefe2f8f
md: avoid dereferencing NULL pointer when accessing suspend_* sysfs attributes.

commit b8d966efd9a46a9a35beac50cbff6e30565125ef upstream.

If we try to modify one of the md/ sysfs files
  suspend_lo or suspend_hi
when the array is not active, we dereference a NULL.
Protect against that.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/md.c