diff options
author | Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> | 2023-02-14 12:38:01 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2023-02-14 17:17:55 +0300 |
commit | 8fcf2d012c8641c18adcd139dba6a1e556338d36 (patch) | |
tree | 9e647dd64cbd35b127f582963bd65d99ca6e759b /include/rdma/iw_portmap.h | |
parent | 22d74bc26bbfde150f602b2a6e93fb11df30ce0b (diff) | |
download | linux-8fcf2d012c8641c18adcd139dba6a1e556338d36.tar.xz |
ubi: block: Fix a possible use-after-free bug in ubiblock_create()
Smatch warns:
drivers/mtd/ubi/block.c:438 ubiblock_create()
warn: '&dev->list' not removed from list
'dev' is freed in 'out_free_dev:, but it is still on the list.
To fix this, delete the list item before freeing.
Fixes: 91cc8fbcc8c7 ("ubi: block: set BLK_MQ_F_BLOCKING")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'include/rdma/iw_portmap.h')
0 files changed, 0 insertions, 0 deletions