From: NeilBrown Date: Wed, 1 Jul 2009 01:14:04 +0000 (+1000) Subject: md: avoid dereferencing NULL pointer when accessing suspend_* sysfs attributes. X-Git-Tag: v2.6.31-rc2~25^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8d966efd9a46a9a35beac50cbff6e30565125ef;p=pandora-kernel.git 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 --- Reading git-diff-tree failed