diff options
| author | Greg Kroah-Hartman <[email protected]> | 2008-01-28 17:50:12 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2008-02-01 22:34:46 +0000 |
| commit | de6f92b9ee00e9f841fb1a63d0bd60593ec55dbe (patch) | |
| tree | fcd4403920eb1a29a515a5b59130ea61e6e9cffc /scripts/mod/file2alias.c | |
| parent | usb: fix usbtest halt check on big endian systems (diff) | |
| download | kernel-de6f92b9ee00e9f841fb1a63d0bd60593ec55dbe.tar.gz kernel-de6f92b9ee00e9f841fb1a63d0bd60593ec55dbe.zip | |
USB: handle idVendor of 0x0000
Some crazy devices in the wild have a vendor id of 0x0000. If we try to
add a module alias with this id, we just can't do it due to a check in
the file2alias.c file. Change the test to verify that both the vendor
and product ids are 0x0000 to show a real "blank" module alias.
Note, the module-init-tools package also needs to be changed to properly
generate the depmod tables.
Cc: Janusz <[email protected]>
Cc: stable <[email protected]>
Cc: Jon Masters <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
| -rw-r--r-- | scripts/mod/file2alias.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index d802b5afae89..9ddf944cce29 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c @@ -155,7 +155,7 @@ static void do_usb_entry_multi(struct usb_device_id *id, struct module *mod) * Some modules (visor) have empty slots as placeholder for * run-time specification that results in catch-all alias */ - if (!(id->idVendor | id->bDeviceClass | id->bInterfaceClass)) + if (!(id->idVendor | id->idProduct | id->bDeviceClass | id->bInterfaceClass)) return; /* Convert numeric bcdDevice range into fnmatch-able pattern(s) */ |
