]> git.baikalelectronics.ru Git - kernel.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)
committerNeilBrown <neilb@suse.de>
Wed, 1 Jul 2009 01:14:04 +0000 (11:14 +1000)
commit9544311dc78a9759e1fa55035dcbf7fba139c88c
treed1c59125e8ee9677e8594bdc4ab223e692a87e50
parent8707ee0f6609aec67077a2bce5ecc3d2dac2d2c3
md: avoid dereferencing NULL pointer when accessing suspend_* sysfs attributes.

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.

Cc: stable@kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c