diff options
Diffstat (limited to 'firmware/usbstack/usb_storage.c')
-rw-r--r-- | firmware/usbstack/usb_storage.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c index a32cf185e7..eb82f72eae 100644 --- a/firmware/usbstack/usb_storage.c +++ b/firmware/usbstack/usb_storage.c | |||
@@ -449,12 +449,11 @@ void usb_storage_init_connection(void) | |||
449 | #endif | 449 | #endif |
450 | #else | 450 | #else |
451 | unsigned char * buffer; | 451 | unsigned char * buffer; |
452 | /* dummy ops with no callbacks, needed because by | ||
453 | * default buflib buffers can be moved around which must be avoided */ | ||
454 | static struct buflib_callbacks dummy_ops; | ||
455 | 452 | ||
456 | // Add 31 to handle worst-case misalignment | 453 | // Add 31 to handle worst-case misalignment |
457 | usb_handle = core_alloc_ex("usb storage", ALLOCATE_BUFFER_SIZE + MAX_CBW_SIZE + 31, &dummy_ops); | 454 | usb_handle = core_alloc_ex("usb storage", |
455 | ALLOCATE_BUFFER_SIZE + MAX_CBW_SIZE + 31, | ||
456 | &buflib_ops_locked); | ||
458 | if (usb_handle < 0) | 457 | if (usb_handle < 0) |
459 | panicf("%s(): OOM", __func__); | 458 | panicf("%s(): OOM", __func__); |
460 | 459 | ||