• Henk's avatar
    [PATCH] drivers/usb/input/yealink.c: Cleanup device matching code · 8e2ce4f9
    Henk authored
    This should fix things mentioned below:
    
    	"I was curious why my firewall was loading a 'phone driver'.
    	It turns out that the probing in the yealink driver is
    	a little too assuming..
    
    	static struct usb_device_id usb_table [] = {
    	    { USB_INTERFACE_INFO(USB_CLASS_HID, 0, 0) },
    	    { }
    	};
    
    	So it picked up my UPS, and loaded the driver.
    	Whilst no harm came, because it later checks the vendor/product IDs,
    	this driver should probably be rewritten to only probe
    	for the device IDs it actually knows about.
    
    	Dave"
    Signed-off-by: default avatarHenk Vergonet <henk.vergonet@gmail.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    8e2ce4f9
yealink.c 25.1 KB