diff options
author | Johan Hovold <johan@kernel.org> | 2017-05-12 12:11:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-12 18:15:46 +0200 |
commit | 75cf067953d5ee543b3bda90bbfcbee5e1f94ae8 (patch) | |
tree | dd5707b70737754d30a31ac762f8f0da3680be72 /drivers/net/irda/irda-usb.c | |
parent | net: dsa: mv88e6xxx: add default case to switch (diff) | |
download | linux-75cf067953d5ee543b3bda90bbfcbee5e1f94ae8.tar.xz linux-75cf067953d5ee543b3bda90bbfcbee5e1f94ae8.zip |
net: irda: irda-usb: fix firmware name on big-endian hosts
Add missing endianness conversion when using the USB device-descriptor
bcdDevice field to construct a firmware file name.
Fixes: 8ef80aef118e ("[IRDA]: irda-usb.c: STIR421x cleanups")
Cc: stable <stable@vger.kernel.org> # 2.6.18
Cc: Nick Fedchik <nfedchik@atlantic-link.com.ua>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/irda-usb.c')
-rw-r--r-- | drivers/net/irda/irda-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/irda-usb.c b/drivers/net/irda/irda-usb.c index 8716b8c07feb..6f3c805f7211 100644 --- a/drivers/net/irda/irda-usb.c +++ b/drivers/net/irda/irda-usb.c @@ -1077,7 +1077,7 @@ static int stir421x_patch_device(struct irda_usb_cb *self) * are "42101001.sb" or "42101002.sb" */ sprintf(stir421x_fw_name, "4210%4X.sb", - self->usbdev->descriptor.bcdDevice); + le16_to_cpu(self->usbdev->descriptor.bcdDevice)); ret = request_firmware(&fw, stir421x_fw_name, &self->usbdev->dev); if (ret < 0) return ret; |