mmc: correct invalid error checking
A message that is not in the archive (sent off-list or not yet received): 20120702175509.10520.24093.stgit@bluebook
Hi,
Quoted 18 lines · Alan Cox
From: Alan Cox <[email protected]>
The effect of the existing code is that we continue blindly when we should warn about an invalid allocation unit
Reported-by [email protected]Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44061
Signed-off-by Alan Cox <[email protected]>---
drivers/mmc/core/sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/core/sd.c +0
-0
drivers/mmc/core/sd.c static int mmc_read_ssr(struct mmc_card *card) · line 250
Quoted 8 lines
drivers/mmc/core/sd.c +1
-1@@ -244,7 +244,7 @@ static int mmc_read_ssr(struct mmc_card *card)* bitfield positions accordingly. */ au =UNSTUFF_BITS (ssr,428 -384 ,4 ); -if (au >0 || au <=9 ) { +if (au >0 && au <=9 ) { card->ssr.au =1 << (au +4 ); es =UNSTUFF_BITS (ssr,408 -384 ,16 ); et =UNSTUFF_BITS (ssr,402 -384 ,6 );
Thanks, pushed to mmc-next for 3.6.
- Chris.
Signature · 2 lines
Chris Ball <[email protected]> <http://printf.net/> One Laptop Per Child