Skip to content

Commit 0767fd9

Browse files
danieldegrassehenrikbrixandersen
authored andcommitted
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: Daniel DeGrasse <[email protected]>
1 parent e31d66a commit 0767fd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

subsys/sd/sd_ops.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ int card_ioctl(struct sd_card *card, uint8_t cmd, void *buf)
794794
* cache flush is not required here
795795
*/
796796
ret = sdmmc_wait_ready(card);
797+
break;
797798
default:
798799
ret = -ENOTSUP;
799800
}

0 commit comments

Comments
 (0)