linux-stable/drivers
Dan Carpenter a4ead70898 net: cdc_ncm: Signedness bug in cdc_ncm_set_dgram_size()
commit a56dcc6b45 upstream.

This code is supposed to test for negative error codes and partial
reads, but because sizeof() is size_t (unsigned) type then negative
error codes are type promoted to high positive values and the condition
doesn't work as expected.

Fixes: 332f989a3b ("CDC-NCM: handle incomplete transfer of MTU")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-24 08:22:45 +01:00
..
accessibility
acpi PCI/ACPI: Correct error message for ASPM disabling 2019-11-20 18:00:05 +01:00
amba
android binder: fix possible UAF when freeing buffer 2019-08-04 09:32:01 +02:00
ata libata: add SG safety checks in SFF pio transfers 2019-08-29 08:26:41 +02:00
atm Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105 2019-09-21 07:15:34 +02:00
auxdisplay auxdisplay: panel: need to delete scan_timer when misc_register fails in panel_attach 2019-09-06 10:20:43 +02:00
base Revert "OPP: Protect dev_list with opp_table lock" 2019-11-24 08:22:45 +01:00
bcma
block nbd: handle racing with error'ed out commands 2019-11-10 11:25:20 +01:00
bluetooth Bluetooth: hci_serdev: clear HCI_UART_PROTO_READY to avoid closing proto races 2019-11-20 18:00:46 +01:00
bus
cdrom
char ipmi:dmi: Ignore IPMI SMBIOS entries with a zero base address 2019-11-20 18:00:09 +01:00
clk clk: boston: unregister clks on failure in clk_boston_setup() 2019-11-06 12:42:55 +01:00
clocksource clocksource/drivers/exynos_mct: Increase priority over ARM arch timer 2019-07-31 07:28:30 +02:00
connector
cpufreq cpufreq: ti-cpufreq: add missing of_node_put() 2019-11-12 19:18:28 +01:00
cpuidle
crypto crypto: s5p-sss: Fix Fix argument list alignment 2019-11-20 18:00:47 +01:00
dax
dca
devfreq PM / devfreq: tegra: Fix kHz to Hz conversion 2019-10-11 18:18:30 +02:00
dio
dma dmaengine: dma-jz4780: Further residue status fix 2019-11-20 17:59:51 +01:00
dma-buf dma-buf/sw_sync: Synchronize signal vs syncpt free 2019-10-07 18:55:07 +02:00
edac EDAC, sb_edac: Return early on ADDRV bit and address type test 2019-11-20 17:59:51 +01:00
eisa
extcon extcon: cht-wc: Return from default case to avoid warnings 2019-11-20 17:59:40 +01:00
firewire
firmware firmware: dell_rbu: Make payload memory uncachable 2019-11-20 18:00:46 +01:00
fmc
fpga fpga: altera-ps-spi: Fix getting of optional confd gpio 2019-09-21 07:15:32 +02:00
fsi
gpio gpio: max77620: Use correct unit for debounce times 2019-11-06 12:43:09 +01:00
gpu drm/i915/cmdparser: Fix jump whitelist clearing 2019-11-12 19:18:57 +01:00
hid HID: intel-ish-hid: fix wrong error handling in ishtp_cl_alloc_tx_ring() 2019-11-12 19:18:34 +01:00
hsi
hv Drivers: hv: vmbus: Fix synic per-cpu context initialization 2019-11-20 17:59:56 +01:00
hwmon hwmon: (acpi_power_meter) Change log level for 'unsafe software power cap' 2019-10-05 12:48:00 +02:00
hwspinlock
hwtracing coresight: tmc: Fix byte-address alignment for RRP 2019-11-20 18:00:38 +01:00
i2c i2c: aspeed: fix invalid clock parameters for very large divisors 2019-11-20 18:00:32 +01:00
ide
idle
iio iio: dac: mcp4922: fix error handling in mcp4922_write_raw 2019-11-20 17:59:35 +01:00
infiniband IB/iser: Fix possible NULL deref at iser_inv_desc() 2019-11-20 18:00:53 +01:00
input Input: synaptics-rmi4 - destroy F54 poller workqueue when removing 2019-11-20 17:59:30 +01:00
iommu iommu/iova: Avoid false sharing on fq_timer_on 2019-10-05 12:47:58 +02:00
ipack
irqchip irqchip/gic-v3-its: Fix LPI release for Multi-MSI devices 2019-10-05 12:47:36 +02:00
isdn net: use skb_queue_empty_lockless() in poll() handlers 2019-11-10 11:25:34 +01:00
leds leds: leds-lp5562 allow firmware files up to the maximum length 2019-10-05 12:47:45 +02:00
lightnvm
macintosh
mailbox mailbox: reset txdone_method TXDONE_BY_POLL if client knows_txdone 2019-11-12 19:18:23 +01:00
mcb
md dm: Use kzalloc for all structs with embedded biosets/mempools 2019-11-06 12:42:52 +01:00
media media: davinci: Fix implicit enum conversion warning 2019-11-20 18:00:30 +01:00
memory
memstick memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()' 2019-10-29 09:17:43 +01:00
message
mfd mfd: palmas: Assign the right powerhold mask for tps65917 2019-11-12 19:18:19 +01:00
misc misc: genwqe: should return proper error value. 2019-11-20 18:00:40 +01:00
mmc mmc: sdhci-of-at91: fix quirk2 overwrite 2019-11-20 17:59:33 +01:00
mtd mtd: spi-nor: cadence-quadspi: add a delay in write sequence 2019-11-12 19:18:21 +01:00
mux
net net: cdc_ncm: Signedness bug in cdc_ncm_set_dgram_size() 2019-11-24 08:22:45 +01:00
nfc NFC: st21nfca: fix double free 2019-11-12 19:17:55 +01:00
ntb
nubus
nvdimm libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-07-31 07:28:41 +02:00
nvme nvmet: fix data units read and written counters in SMART log 2019-10-05 12:47:58 +02:00
nvmem nvmem: core: return error code instead of NULL from nvmem_device_get 2019-11-20 17:59:56 +01:00
of of: make PowerMac cache node search conditional on CONFIG_PPC_PMAC 2019-11-20 17:59:48 +01:00
oprofile
parisc parisc: Disable HP HSC-PCI Cards to prevent kernel crash 2019-10-05 12:48:05 +02:00
parport parport: Fix mem leak in parport_register_dev_model 2019-06-25 11:36:51 +08:00
pci PCI: tegra: Enable Relaxed Ordering only for Tegra20 & Tegra30 2019-11-12 19:18:33 +01:00
pcmcia
perf drivers/perf: arm_pmu: Fix failure path in PM notifier 2019-08-06 19:05:27 +02:00
phy phy: lantiq: Fix compile warning 2019-11-20 18:00:41 +01:00
pinctrl pinctrl: at91: don't use the same irqchip with multiple gpiochips 2019-11-20 18:00:00 +01:00
platform platform/x86: pmc_atom: Add Siemens SIMATIC IPC227E to critclk_systems DMI table 2019-11-10 11:25:39 +01:00
pnp
power power: supply: twl4030_charger: disable eoc interrupt on linear charge 2019-11-20 18:00:15 +01:00
powercap
pps drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl 2019-08-04 09:32:03 +02:00
ps3
ptp
pwm pwm: stm32-lp: Add check in case requested period cannot be achieved 2019-10-11 18:18:40 +02:00
rapidio drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings 2019-08-06 19:05:24 +02:00
ras RAS/CEC: Fix pfn insertion 2019-07-31 07:28:24 +02:00
regulator regulator: pfuze100-regulator: Variable "val" in pfuze100_regulator_probe() could be uninitialized 2019-11-10 11:25:05 +01:00
remoteproc remoteproc/davinci: Use %zx for formating size_t 2019-11-20 17:59:39 +01:00
reset
rpmsg
rtc rtc: armada38x: fix possible race condition 2019-11-20 18:00:51 +01:00
s390 s390/qeth: invoke softirqs after napi_schedule() 2019-11-20 18:00:04 +01:00
sbus
scsi scsi: NCR5380: Check for bus reset 2019-11-20 18:00:51 +01:00
sfi
sh
sn
soc soc: qcom: wcnss_ctrl: Avoid string overflow 2019-11-20 17:59:59 +01:00
spi spi: mediatek: use correct mata->xfer_len when in fifo transfer 2019-11-24 08:22:43 +01:00
spmi
ssb
staging staging: rtl8188eu: fix null dereference when kzalloc fails 2019-11-06 12:43:04 +01:00
target scsi: target: core: Do not overwrite CDB byte 1 2019-11-10 11:25:15 +01:00
tc
tee tee: optee: add missing of_node_put after of_device_is_available 2019-11-24 08:22:44 +01:00
thermal thermal: Fix use-after-free when unregistering thermal zone device 2019-10-11 18:18:41 +02:00
thunderbolt thunderbolt: Use 32-bit writes when writing ring producer/consumer 2019-11-06 12:43:22 +01:00
tty serial: mxs-auart: Fix potential infinite loop 2019-11-20 18:00:07 +01:00
uio
usb usb: xhci-mtk: fix ISOC error when interval is zero 2019-11-20 18:00:52 +01:00
uwb
vfio vfio/pci: Mask buggy SR-IOV VF INTx support 2019-11-20 18:00:40 +01:00
vhost vhost: make sure log_num < in_num 2019-09-16 08:20:46 +02:00
video video: ssd1307fb: Start page range at page_offset 2019-10-07 18:54:58 +02:00
virt
virtio
vlynq
vme
w1
watchdog watchdog: aspeed: Add support for AST2600 2019-10-11 18:18:39 +02:00
xen xen/pci: reserve MCFG areas earlier 2019-10-11 18:18:38 +02:00
zorro
Kconfig
Makefile