hso: always read interface number from the current altsetting
authorAleksander Morgado <aleksander@aleksander.es>
Tue, 17 Feb 2015 10:31:29 +0000 (11:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Feb 2015 20:21:31 +0000 (15:21 -0500)
commit64bea46e3ff28701aa34be48b93c7907ebbdb31e
treea5ee06acd18dba3fefc00f7773e24b44f7e9b1a6
parent216fa18f339e9e006a93cacb54884348da668b9e
hso: always read interface number from the current altsetting

Always read bInterfaceNumber from the current altsetting, not from the first one
available in the altsetting array. This is coming from code review, not related
to any specific bug.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/hso.c