On Wed, Feb 14, 2024 at 11:43:56PM +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(). > > Fixes: 066ff571011d ("block: turn bio_kmalloc into a simple kmalloc wrapper") > CC: stable@xxxxxxxxxxxxxxx # 6.1+ > Signed-off-by: Naohiro Aota <naohiro.aota@xxxxxxx> Looks good: Reviewed-by: Christoph Hellwig <hch@xxxxxx>