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