commit | c63fe8f6ca3669f1d120ff70523e2911b9966574 | [log] [tgz] |
---|---|---|
author | Wolfram Sang <wsa@the-dreams.de> | Fri Jan 10 19:36:41 2014 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jan 10 16:54:35 2014 -0800 |
tree | d4f9e03eb7d36baf2753f00d42539ad9f36ff90b | |
parent | 3569843a2b10a7f2163595fa2d499291147f7e94 [diff] |
usb: core: add sanity checks when using bInterfaceClass with new_id Check if that field is actually used and if so, bail out if it exeeds a u8. Make it also future-proof by not requiring "exactly three" parameters in new_id, but simply "more than two". Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>