Skip to contentSkip to conversation

Patch "net: irda: irda-usb: fix firmware name on big-endian hosts" has been added to the 4.9-stable tree

PATCH [email protected] 1 participant 1 message May 23, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

net: irda: irda-usb: fix firmware name on big-endian hosts

to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
net-irda-irda-usb-fix-firmware-name-on-big-endian-hosts.patch
and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 75cf067953d5ee543b3bda90bbfcbee5e1f94ae8 Mon Sep 17 00:00:00 2001

From: Johan Hovold <[email protected]>
Date: Fri, 12 May 2017 12:11:13 +0200
Subject: net: irda: irda-usb: fix firmware name on big-endian hosts

From: Johan Hovold <[email protected]>

commit 75cf067953d5ee543b3bda90bbfcbee5e1f94ae8 upstream.

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 Nick Fedchik <[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
          * 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;

Patches currently in stable-queue which might be from [email protected] are

queue-4.9/usb-serial-io_ti-fix-div-by-zero-in-set_termios.patch queue-4.9/usb-chaoskey-fix-alea-quirk-on-big-endian-hosts.patch queue-4.9/usb-hub-fix-non-ss-hub-descriptor-handling.patch queue-4.9/usb-serial-ftdi_sio-add-olimex-arm-usb-tiny-h-pids.patch queue-4.9/usb-serial-ftdi_sio-fix-setting-latency-for-unprivileged-users.patch queue-4.9/usb-iowarrior-fix-info-ioctl-on-big-endian-hosts.patch queue-4.9/watchdog-pcwd_usb-fix-null-deref-at-probe.patch queue-4.9/usb-serial-qcserial-add-more-lenovo-em74xx-device-ids.patch queue-4.9/usb-serial-option-add-telit-me910-support.patch queue-4.9/net-irda-irda-usb-fix-firmware-name-on-big-endian-hosts.patch queue-4.9/of-fdt-add-missing-allocation-failure-check.patch queue-4.9/usbvision-fix-null-deref-at-probe.patch queue-4.9/usb-serial-mct_u232-fix-big-endian-baud-rate-handling.patch queue-4.9/usb-ehci-platform-fix-companion-device-leak.patch queue-4.9/mceusb-fix-null-deref-at-probe.patch queue-4.9/usb-hub-fix-ss-hub-descriptor-handling.patch queue-4.9/ath9k_htc-fix-null-deref-at-probe.patch queue-4.9/usb-musb-fix-trying-to-suspend-while-active-for-otg-configurations.patch