aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorNeilBrown <[email protected]>2013-02-21 15:36:38 +1100
committerNeilBrown <[email protected]>2013-02-26 11:57:04 +1100
commit58ebb34c49fcfcaa029e4b1c1453d92583900f9a (patch)
tree797af00762847745eb34f1fa6241f5d157fd5f04 /lib/memory-notifier-error-inject.c
parenta64685399181780998281fe07309a94b25dd24c3 (diff)
md: raid0: fix error return from create_stripe_zones.
Create_stripe_zones returns an error slightly differently to raid0_run and to raid0_takeover_*. The error returned used by the second was wrong and an error would result in mddev->private being set to NULL and sooner or later a crash. So never return NULL, return ERR_PTR(err), not NULL from create_stripe_zones. This bug has been present since 2.6.35 so the fix is suitable for any kernel since then. Cc: [email protected] Signed-off-by: NeilBrown <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions