]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: queue: Improve error handling during allocation of bounce buffers
authorBhuvanesh Surachari <bhuvanesh_surachari@mentor.com>
Mon, 1 Dec 2014 07:23:02 +0000 (02:23 -0500)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 5 Dec 2014 09:33:17 +0000 (10:33 +0100)
commitbf847e35bbc2730f538ea0c39cf42f3ab2c3b46d
tree34a579006f5fe970ec9646e5eaf882d3af4345a3
parent0a1f2d761bbabfcc2e1eb04a469dbc7f5929440b
mmc: queue: Improve error handling during allocation of bounce buffers

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 <bhuvanesh_surachari@mentor.com>
Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/card/queue.c