NeilBrown 0c35bd4723 md: fix problems with freeing private data after ->run failure.
If ->run() fails, it can either free the data structures it
allocated, or leave that task to ->free() which will be called
on failures.

However:
  md.c calls ->free() even if ->private_data is NULL, which
     causes problems in some personalities.
  raid0.c frees the data, but doesn't clear ->private_data,
     which will become a problem when we fix md.c

So better fix both these issues at once.

Reported-by: Richard W.M. Jones <rjones@redhat.com>
Fixes: 5aa61f427e4979be733e4847b9199ff9cc48a47e
URL: https://bugzilla.kernel.org/show_bug.cgi?id=94381
Signed-off-by: NeilBrown <neilb@suse.de>
2015-03-21 09:40:36 +11:00
..
2014-01-14 23:23:03 -05:00
2015-02-16 11:11:15 -05:00
2013-11-23 22:33:47 -08:00
2013-08-23 09:02:13 -04:00
2013-11-23 22:33:47 -08:00
2013-09-05 20:46:06 -04:00
2014-01-14 23:23:04 -05:00
2015-02-18 09:41:19 -05:00
2015-02-04 08:35:52 +11:00
2015-02-04 08:35:52 +11:00
2014-03-27 16:56:23 -04:00
2015-02-06 09:32:57 +11:00
2015-02-04 08:35:52 +11:00