Commit 0767fd97 authored by Daniel DeGrasse's avatar Daniel DeGrasse Committed by Henrik Brix Andersen
Browse files

sd: sd_ops: fix DISK_IOCTL_CTRL_SYNC return code



SD IOCTL handling for DISK_IOCTL_CTRL_SYNC was falling through to the
default return statement, and returning an error when disk sync
succeeded. Fix this issue by properly breaking in IOCTL handler.

Signed-off-by: default avatarDaniel DeGrasse <daniel.degrasse@nxp.com>
parent e31d66a1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -794,6 +794,7 @@ int card_ioctl(struct sd_card *card, uint8_t cmd, void *buf)
		 * cache flush is not required here
		 */
		ret = sdmmc_wait_ready(card);
		break;
	default:
		ret = -ENOTSUP;
	}