Dan Carpenter e8abe1de43 md-cluster: Fix potential error pointer dereference in resize_bitmaps()
The error handling calls md_bitmap_free(bitmap) which checks for NULL
but will Oops if we pass an error pointer.  Let's set "bitmap" to NULL
on this error path.

Fixes: afd756286083 ("md-cluster/raid10: resize all the bitmaps before start reshape")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Song Liu <songliubraving@fb.com>
2020-08-05 17:07:48 -07:00
..
2019-11-12 19:12:07 -07:00
2020-07-08 08:02:13 -06:00
2020-07-08 08:02:13 -06:00
2020-07-08 08:02:13 -06:00
2019-08-23 10:13:12 -04:00
2020-07-14 22:58:51 -07:00
2019-03-12 10:15:18 -07:00