diff options
author | 2023-02-14 01:38:01 -0800 | |
---|---|---|
committer | 2023-02-14 15:17:55 +0100 | |
commit | 8fcf2d012c8641c18adcd139dba6a1e556338d36 (patch) | |
tree | 9e647dd64cbd35b127f582963bd65d99ca6e759b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ubifs: make kobj_type structures constant (diff) | |
download | wireguard-linux-8fcf2d012c8641c18adcd139dba6a1e556338d36.tar.xz wireguard-linux-8fcf2d012c8641c18adcd139dba6a1e556338d36.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions