Re: [bug report] mmc: block: return errorcode from mmc_sd_num_wr_blocks()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 7, 2017 at 9:23 AM, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:

>    785          if (!mmc_host_is_spi(card->host) && !(cmd.resp[0] & R1_APP_CMD))
>    786                  return 0;
>
> This is supposed to be "return -EIO", I suspect.  The caller expects
> that *written_blocks is initialized if we return zero.

Indeed. I sent a fixup patch.

Thank you so much for noticing this and reporting!

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux