diff options
Diffstat (limited to 'payloads')
-rw-r--r-- | payloads/libpayload/drivers/usb/usbmsc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/usb/usbmsc.c b/payloads/libpayload/drivers/usb/usbmsc.c index 96c4946b76..75a8804b28 100644 --- a/payloads/libpayload/drivers/usb/usbmsc.c +++ b/payloads/libpayload/drivers/usb/usbmsc.c @@ -78,8 +78,10 @@ usb_msc_create_disk (usbdev_t *dev) static void usb_msc_remove_disk (usbdev_t *dev) { - if (MSC_INST (dev)->usbdisk_created && usbdisk_remove) + if (MSC_INST (dev)->usbdisk_created && usbdisk_remove) { usbdisk_remove (dev); + MSC_INST (dev)->usbdisk_created = 0; + } } static void |