Skip to content

Commit 14d0caf

Browse files
jhovoldgregkh
authored andcommitted
net: irda: irda-usb: fix firmware name on big-endian hosts
commit 75cf067953d5ee543b3bda90bbfcbee5e1f94ae8 upstream. Add missing endianness conversion when using the USB device-descriptor bcdDevice field to construct a firmware file name. Fixes: 8ef80ae ("[IRDA]: irda-usb.c: STIR421x cleanups") 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ec0b553 commit 14d0caf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/irda/irda-usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1077,7 +1077,7 @@ static int stir421x_patch_device(struct irda_usb_cb *self)
10771077
* are "42101001.sb" or "42101002.sb"
10781078
*/
10791079
sprintf(stir421x_fw_name, "4210%4X.sb",
1080-
self->usbdev->descriptor.bcdDevice);
1080+
le16_to_cpu(self->usbdev->descriptor.bcdDevice));
10811081
ret = request_firmware(&fw, stir421x_fw_name, &self->usbdev->dev);
10821082
if (ret < 0)
10831083
return ret;

0 commit comments

Comments
 (0)