diff options
author | Naohiro Aota <[email protected]> | 2024-02-14 23:43:56 +0900 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2024-02-15 14:44:07 -0500 |
commit | de959094eb2197636f7c803af0943cb9d3b35804 (patch) | |
tree | 5b56825c0c59810d935b82e9156cf10a68abe06c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | b5fc07a5fb56216a49e6c1d0b172d5464d99a89b (diff) |
scsi: target: pscsi: Fix bio_put() for error case
As of commit 066ff571011d ("block: turn bio_kmalloc into a simple kmalloc
wrapper"), a bio allocated by bio_kmalloc() must be freed by bio_uninit()
and kfree(). That is not done properly for the error case, hitting WARN and
NULL pointer dereference in bio_free().
Fixes: 066ff571011d ("block: turn bio_kmalloc into a simple kmalloc wrapper")
CC: [email protected] # 6.1+
Signed-off-by: Naohiro Aota <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Christoph Hellwig <[email protected]>
Reviewed-by: Johannes Thumshirn <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions