Patch "USB: cdc-acm: check for valid interfaces" has been added to the 3.14-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

    USB: cdc-acm: check for valid interfaces

to the 3.14-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:
     usb-cdc-acm-check-for-valid-interfaces.patch
and it can be found in the queue-3.14 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.


>From 403dff4e2c94f275e24fd85f40b2732ffec268a1 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 7 Nov 2014 08:48:15 -0800
Subject: USB: cdc-acm: check for valid interfaces

From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

commit 403dff4e2c94f275e24fd85f40b2732ffec268a1 upstream.

We need to check that we have both a valid data and control inteface for both
types of headers (union and not union.)

References: https://bugzilla.kernel.org/show_bug.cgi?id=83551
Reported-by: Simon Schubert <2+kernel@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

---
 drivers/usb/class/cdc-acm.c |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

--- a/drivers/usb/class/cdc-acm.c
+++ b/drivers/usb/class/cdc-acm.c
@@ -1169,10 +1169,11 @@ next_desc:
 	} else {
 		control_interface = usb_ifnum_to_if(usb_dev, union_header->bMasterInterface0);
 		data_interface = usb_ifnum_to_if(usb_dev, (data_interface_num = union_header->bSlaveInterface0));
-		if (!control_interface || !data_interface) {
-			dev_dbg(&intf->dev, "no interfaces\n");
-			return -ENODEV;
-		}
+	}
+
+	if (!control_interface || !data_interface) {
+		dev_dbg(&intf->dev, "no interfaces\n");
+		return -ENODEV;
 	}
 
 	if (data_interface_num != call_interface_num)


Patches currently in stable-queue which might be from gregkh@xxxxxxxxxxxxxxxxxxx are

queue-3.14/hid-add-battery-quirk-for-usb_device_id_apple_alu_wireless_2011_iso-keyboard.patch
queue-3.14/asoc-sigmadsp-refuse-to-load-firmware-files-with-a-non-supported-version.patch
queue-3.14/x86-vdso-use-asm-volatile-in-__getcpu.patch
queue-3.14/alsa-hda-using-uninitialized-data.patch
queue-3.14/asoc-dwc-ensure-fifos-are-flushed-to-prevent-channel-swap.patch
queue-3.14/hid-i2c-hid-prevent-buffer-overflow-in-early-irq.patch
queue-3.14/drivers-rtc-rtc-sirfsoc.c-move-hardware-initilization-earlier-in-probe.patch
queue-3.14/can-peak_usb-fix-memset-usage.patch
queue-3.14/pstore-ram-allow-optional-mapping-with-pgprot_noncached.patch
queue-3.14/alsa-usb-audio-extend-kef-x300a-fu-10-tweak-to-arcam-rpac.patch
queue-3.14/blk-mq-use-nr_cpu_ids-as-highest-cpu-id-count-for-hwq-cpu-map.patch
queue-3.14/kvm-x86-drop-severity-of-generation-wraparound-message.patch
queue-3.14/hid-roccat-potential-out-of-bounds-in-pyra_sysfs_write_settings.patch
queue-3.14/powerpc-fix-bad-null-pointer-check-in-udbg_uart_getc_poll.patch
queue-3.14/misc-genwqe-check-for-error-from-get_user_pages_fast.patch
queue-3.14/ocfs2-fix-the-wrong-directory-passed-to-ocfs2_lookup_ino_from_name-when-link-file.patch
queue-3.14/drivers-rtc-rtc-isl12057.c-fix-masking-of-register-values.patch
queue-3.14/asoc-max98090-fix-ill-defined-sidetone-route.patch
queue-3.14/pci-restore-detection-of-read-only-bars.patch
queue-3.14/swiotlb-xen-pass-dev_addr-to-swiotlb_tbl_unmap_single.patch
queue-3.14/hid-i2c-hid-fix-race-condition-reading-reports.patch
queue-3.14/ocfs2-fix-journal-commit-deadlock.patch
queue-3.14/pstore-ram-fix-hangs-by-using-write-combine-mappings.patch
queue-3.14/ath9k_hw-fix-hardware-queue-allocation.patch
queue-3.14/ath5k-fix-hardware-queue-index-assignment.patch
queue-3.14/swiotlb-xen-call-xen_dma_sync_single_for_device-when-appropriate.patch
queue-3.14/ath9k-fix-be-bk-queue-order.patch
queue-3.14/swiotlb-xen-remove-bug_on-in-xen_bus_to_phys.patch
queue-3.14/iommu-vt-d-fix-an-off-by-one-bug-in-__domain_mapping.patch
queue-3.14/usb-cdc-acm-check-for-valid-interfaces.patch
queue-3.14/add-usb_ehci_exynos-to-multi_v7_defconfig.patch
queue-3.14/hid-add-a-new-id-0x501a-for-genius-mousepen-i608x.patch
queue-3.14/ubi-fix-invalid-vfree.patch
queue-3.14/powerpc-powernv-switch-off-mmu-before-entering-nap-sleep-rvwinkle-mode.patch
queue-3.14/driver-core-fix-unbalanced-device-reference-in-drivers_probe.patch
queue-3.14/x86_64-vdso-fix-the-vdso-address-randomization-algorithm.patch
queue-3.14/can-peak_usb-fix-cleanup-sequence-order-in-case-of-error-during-init.patch
queue-3.14/swiotlb-xen-pass-dev_addr-to-xen_dma_unmap_page-and-xen_dma_sync_single_for_cpu.patch
queue-3.14/powerpc-book3s-fix-partial-invalidation-of-tlbs-in-mce-code.patch
queue-3.14/alsa-hda-fix-wrong-gpio_dir-gpio_mask-hint-setups-for-idt-stac-codecs.patch
queue-3.14/iwlwifi-mvm-update-values-for-smart-fifo.patch
queue-3.14/ubi-fix-double-free-after-do_sync_erase.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]