Skip to content

Commit 1f00150

Browse files
authored
Fix undefined behavior
Fixes undefined behavior where SDCardBlockDevice::wait_for_completition() runs off the end without returning a value.
1 parent 149f78b commit 1f00150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/BlockDevices/SDCardBlockDevice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ fsp_err_t SDCardBlockDevice::wait_for_completition() {
478478

479479
rv = FSP_ERR_TIMEOUT;
480480
}
481-
481+
return rv;
482482
}
483483

484484

0 commit comments

Comments
 (0)