Files
linux/drivers/md
Dan Carpenter 0b702cd414 md-cluster: Fix potential error pointer dereference in resize_bitmaps()
[ Upstream commit e8abe1de43 ]

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: afd7562860 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-21 13:15:15 +02:00
..
2019-11-12 19:12:07 -07:00
2016-11-01 09:43:26 -06:00
2017-06-09 09:27:32 -06:00
2019-08-23 10:13:12 -04:00
2019-03-12 10:15:18 -07:00