--- src/usb-msc.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/usb-msc.c b/src/usb-msc.c index e91d916..52fb58a 100644 --- a/src/usb-msc.c +++ b/src/usb-msc.c @@ -111,6 +111,8 @@ fail: int process_usb_op(struct disk_op_s *op) { + if (!CONFIG_USB_MSC) + return 0; switch (op->command) { case CMD_READ: return cdb_read(op);