mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 19:42:26 +00:00
As of commit066ff57101("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:066ff57101("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]>