[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.14 / 0003-USB-option-make-interface-blacklist-work-again.patch
1 From ebdc22267ac3cd3aef9e300a553c0f32ac5da6f2 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Bj=C3=B8rn=20Mork?= <bjorn@mork.no>
3 Date: Fri, 16 Mar 2012 12:56:44 +0100
4 Subject: [PATCH 003/147] USB: option: make interface blacklist work again
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 commit 963940cf472d76eca2d36296e461202cc6997352 upstream.
11 commit 0d905fd "USB: option: convert Huawei K3765, K4505, K4605
12 reservered interface to blacklist" accidentally ANDed two
13 blacklist tests by leaving out a return. This was not noticed
14 because the two consecutive bracketless if statements made it
15 syntactically correct.
17 Signed-off-by: Bj??rn Mork <bjorn@mork.no>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
19 ---
20 drivers/usb/serial/option.c | 1 +
21 1 file changed, 1 insertion(+)
23 diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
24 index 3c4b7df..6410935 100644
25 --- a/drivers/usb/serial/option.c
26 +++ b/drivers/usb/serial/option.c
27 @@ -1373,6 +1373,7 @@ static int option_probe(struct usb_serial *serial,
28 serial->interface->cur_altsetting->desc.bInterfaceNumber,
29 OPTION_BLACKLIST_RESERVED_IF,
30 (const struct option_blacklist_info *) id->driver_info))
31 + return -ENODEV;
33 /* Don't bind network interface on Samsung GT-B3730, it is handled by a separate module */
34 if (serial->dev->descriptor.idVendor == SAMSUNG_VENDOR_ID &&
35 --
36 1.7.9.4