Commit 3fec7c2e authored by hpi1's avatar hpi1

mmc_device_darwin: add missing error check

parent 5f58595f
......@@ -446,6 +446,10 @@ static int mmc_open_iokit(const char *path, MMCDEV *mmc) {
/* done with the ioservice. release it */
(void) IOObjectRelease(service);
if (0 != rc) {
return rc;
}
/* Init DiskArbitration */
rc = iokit_da_init(mmc);
if (0 != rc) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment