aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/xilinx-spi.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2020-08-04 10:16:45 +0000
committerSong Liu <[email protected]>2020-08-06 00:07:48 +0000
commite8abe1de43dac658dacbd04a4543e0c988a8d386 (patch)
tree8a04e1f65a11776c31c4168027ace095a8bf48b4 /drivers/fpga/xilinx-spi.c
parentmd: get sysfs entry after redundancy attr group create (diff)
downloadkernel-e8abe1de43dac658dacbd04a4543e0c988a8d386.tar.gz
kernel-e8abe1de43dac658dacbd04a4543e0c988a8d386.zip
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 <[email protected]> Reviewed-by: Guoqing Jiang <[email protected]> Signed-off-by: Song Liu <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions