Commit 5f58595f authored by hpi1's avatar hpi1

mmc_device_darwin: Attempt to fix #6 (segfault in close() after failed open())

parent e3e53062
......@@ -533,6 +533,12 @@ void device_close(MMCDEV **pp)
IODestroyPlugInInterface(mmc->plugInInterface);
}
if (!mmc->sync_sem) {
/* open failed before iokit_da_init() */
X_FREE(*pp);
return;
}
/* Wait for disc to re-appear for 20 seconds.
* This timeout was figured out by experimentation with
* a USB BD drive which sometimes can take really long to
......
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