fix sd can't usage when mult-block receive errro

This commit is contained in:
licheng
2022-07-04 23:29:11 +08:00
committed by Petro Karashchenko
parent fcc48c2254
commit ee0dc87059
+4
View File
@@ -1280,6 +1280,10 @@ static ssize_t mmcsd_read(FAR struct inode *inode, unsigned char *buffer,
if (mmcsd_recvblock(slot, buffer, SECTORSIZE(slot)) != 0)
{
ferr("ERROR: Failed: to receive the block\n");
/* Send CMD12: Stops transmission */
response = mmcsd_sendcmd(slot, &g_cmd12, 0);
goto errout_with_eio;
}