mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
Allocation of previous bounce buffer in mmc_init_queue when the current bounce buffer allocation fails was leading to a crash later in __blk_segment_map_sg. Error handling is improved by allocating previous bounce buffer only if the current bounce buffer allocation succeeds. Signed-off-by: Bhuvanesh Surachari <[email protected]> Signed-off-by: Harish Jenny K N <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>