On Wed, 14 Feb 2024 23:43:56 +0900, Naohiro Aota wrote: > 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(). > > Applied to 6.8/scsi-fixes, thanks! [1/1] scsi: target: pscsi: fix bio_put for error case https://git.kernel.org/mkp/scsi/c/de959094eb21 -- Martin K. Petersen Oracle Linux Engineering