projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f086046
)
MLK-13869 mmc: card: fix infinite loop in mmc_blk_alloc_req
author
Octavian Purdila
<octavian.purdila@nxp.com>
Mon, 20 Feb 2017 09:27:15 +0000
(11:27 +0200)
committer
Nitin Garg
<nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:58:14 +0000
(14:58 -0500)
Initialize ret to avoid an infinite loop in mmc_blk_alloc_req which may
happen if the uninitialize ret value is -EAGAIN.
Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
drivers/mmc/card/block.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/card/block.c
b/drivers/mmc/card/block.c
index
c8eed69
..
fb674d8
100644
(file)
--- a/
drivers/mmc/card/block.c
+++ b/
drivers/mmc/card/block.c
@@
-2229,6
+2229,7
@@
again:
if (devidx >= 0)
devidx = ida_simple_get(&mmc_blk_ida, devidx, devidx,
GFP_NOWAIT);
+ ret = 0;
if (devidx < 0)
ret = ida_get_new_above(&mmc_blk_ida,
mmc_first_nonreserved_index(), &devidx);