1
0
mirror of https://github.com/ericonr/sndio.git synced 2024-02-18 04:45:21 -06:00

stop mmc in dev_done, releasing ref to the device

This commit is contained in:
Alexandre Ratchov 2015-11-25 20:46:03 +01:00
parent 8bb88f248f
commit 66ca92689e

View File

@ -1214,6 +1214,8 @@ dev_done(struct dev *d)
log_puts(": draining\n"); log_puts(": draining\n");
} }
#endif #endif
if (d->tstate != MMC_STOP)
dev_mmcstop(d);
if (d->hold) if (d->hold)
dev_unref(d); dev_unref(d);
} }