From 7c865cf94d93b0e277cf4a3c101b83980bb7dcec Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Mon, 13 Jun 2011 02:15:48 +0000 Subject: [PATCH] usb_floppy is for the most part a copy of usb_disk and should probably be merged into it again (adding generic CBI support). It is so much of a copy even that it still claimed to have the original 3 support descriptors while in fact it only has one. Since the memory beyond that one support descriptor was probably just zeros, making them complete wildcards usb_support_descriptor wise, this lead to every single USB device being handed to the usb_floppy device added hook. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42145 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/drivers/disk/usb/usb_floppy/usb_disk.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/kernel/drivers/disk/usb/usb_floppy/usb_disk.cpp b/src/add-ons/kernel/drivers/disk/usb/usb_floppy/usb_disk.cpp index 3b1c52e435..fcf41dc8d3 100644 --- a/src/add-ons/kernel/drivers/disk/usb/usb_floppy/usb_disk.cpp +++ b/src/add-ons/kernel/drivers/disk/usb/usb_floppy/usb_disk.cpp @@ -1245,7 +1245,7 @@ init_driver() return result; } - gUSBModule->register_driver(DRIVER_NAME, supportedDevices, 3, NULL); + gUSBModule->register_driver(DRIVER_NAME, supportedDevices, 1, NULL); gUSBModule->install_notify(DRIVER_NAME, ¬ifyHooks); return B_OK; }