net: irda: irda-usb: fix firmware name on big-endian hosts
Subsystems (3)
PATCH 1/1 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 <[email protected]> # 2.6.18
Cc Nick Fedchik <[email protected]>
Signed-off-by Johan Hovold <[email protected]>
--- drivers/net/irda/irda-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/irda/irda-usb.c +1 -1
@@ -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;
Signature · 1 line
2.13.0
From: Johan Hovold <[email protected]>
Date: Fri, 12 May 2017 12:11:13 +0200
Quoted 7 lines
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 <[email protected]> # 2.6.18Cc Nick Fedchik <[email protected]>Signed-off-by Johan Hovold <[email protected]>
Applied.