linux-stable/drivers
José Expósito d53456492b IB/qib: Fix memory leak in qib_user_sdma_queue_pkts()
[ Upstream commit bee90911e0 ]

The wrong goto label was used for the error case and missed cleanup of the
pkt allocation.

Fixes: d39bf40e55 ("IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields")
Link: https://lore.kernel.org/r/20211208175238.29983-1-jose.exposito89@gmail.com
Addresses-Coverity-ID: 1493352 ("Resource leak")
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-29 12:17:33 +01:00
..
accessibility
acpi ACPI: PMIC: Fix intel_pmic_regs_handler() read accesses 2021-11-26 11:40:36 +01:00
amba ARM: 9120/1: Revert "amba: make use of -1 IRQs warn" 2021-11-12 14:28:22 +01:00
android binder: use wake_up_pollfree() 2021-12-14 10:16:55 +01:00
ata libata: if T_LENGTH is zero, dma direction should be DMA_NONE 2021-12-22 09:18:00 +01:00
atm atm: nicstar: register the interrupt handler in the right place 2021-07-20 16:17:44 +02:00
auxdisplay auxdisplay: ht16k33: Fix frame buffer device blanking 2021-11-26 11:40:35 +01:00
base regmap: Fix possible double-free in regcache_rbtree_exit() 2021-11-02 18:25:12 +01:00
bcma bcma: Fix memory leak for internally-handled cores 2021-09-22 11:45:22 +02:00
block xen/blkfront: harden blkfront against event channel storms 2021-12-22 09:18:01 +01:00
bluetooth Bluetooth: btusb: fix bt fiwmare downloading failure issue for qca btsoc. 2021-07-20 16:17:45 +02:00
bus bus: qcom: Put child node before return 2021-05-22 10:57:28 +02:00
cdrom cdrom: gdrom: initialize global variable at init time 2021-05-26 11:47:00 +02:00
char parisc/agp: Annotate parisc agp init functions with __init 2021-12-22 09:17:58 +01:00
clk clk: kirkwood: Fix a clocking boot regression 2021-09-22 11:45:23 +02:00
clocksource clocksource/drivers/sh_cmt: Fix wrong setting if don't request IRQ for clock source channel 2021-09-22 11:45:19 +02:00
connector
cpufreq cpufreq: schedutil: Destroy mutex before kobject_put() frees the memory 2021-10-06 15:05:08 +02:00
cpuidle cpuidle: Fix kobject memory leaks in error paths 2021-11-26 11:40:29 +01:00
crypto crypto: qat - disregard spurious PFVF interrupts 2021-11-26 11:40:30 +01:00
dax
dca
devfreq
dio
dma dmaengine: st_fdma: fix MODULE_ALIAS 2021-12-22 09:17:59 +01:00
dma-buf dma-buf/sync_file: Don't leak fences on merge failure 2021-07-28 11:12:16 +02:00
edac EDAC/sb_edac: Fix top-of-high-memory value for Broadwell/Haswell 2021-11-26 11:40:23 +01:00
eisa
extcon extcon: max8997: Add missing modalias string 2021-07-20 16:17:41 +02:00
firewire firewire: nosy: Fix a use-after-free bug in nosy_ioctl() 2021-04-07 12:47:03 +02:00
firmware firmware: arm_scpi: Fix string overflow in SCPI genpd driver 2021-12-22 09:18:00 +01:00
fmc
fpga
fsi
gpio gpio: zynq: Check return value of pm_runtime_get_sync 2021-07-20 16:17:50 +02:00
gpu drm/msm/dsi: set default num_data_lanes 2021-12-22 09:17:58 +01:00
hid HID: holtek: fix mouse probing 2021-12-29 12:17:32 +01:00
hsi HSI: core: fix resource leaks in hsi_add_client_from_dt() 2021-05-22 10:57:31 +02:00
hv hyperv/vmbus: include linux/bitops.h 2021-11-26 11:40:22 +01:00
hwmon hwmon: (dell-smm) Fix warning on /proc/i8k creation error 2021-12-22 09:17:58 +01:00
hwspinlock
hwtracing intel_th: Wait until port is in reset before programming it 2021-07-20 16:17:51 +02:00
i2c i2c: rk3x: Handle a spurious start completion interrupt flag 2021-12-22 09:17:58 +01:00
ide
idle
iio iio: accel: kxcjk-1013: Fix possible memory leak in probe and remove 2021-12-14 10:16:57 +01:00
infiniband IB/qib: Fix memory leak in qib_user_sdma_queue_pkts() 2021-12-29 12:17:33 +01:00
input Input: touchscreen - avoid bitwise vs logical OR warning 2021-12-22 09:18:01 +01:00
iommu iommu/vt-d: Fix sysfs leak in alloc_iommu() 2021-06-03 08:36:12 +02:00
ipack ipack: ipoctal: fix module reference leak 2021-10-06 15:05:09 +02:00
irqchip irqchip: nvic: Fix offset for Interrupt Priority Offsets 2021-12-14 10:16:57 +01:00
isdn isdn: mISDN: Fix sleeping function called from invalid context 2021-10-27 09:51:41 +02:00
leds leds: ktd2692: Fix an error handling path 2021-07-20 16:17:41 +02:00
lightnvm
macintosh
mailbox
mcb mcb: fix error handling in mcb_alloc_bus() 2021-10-06 15:05:05 +02:00
md dm btree remove: fix use after free in rebalance_children() 2021-12-22 09:17:59 +01:00
media media: cec: copy sequence field for the reply 2021-12-08 08:46:47 +01:00
memory memory: fsl_ifc: fix leak of irq and nand_irq in fsl_ifc_ctrl_probe 2021-11-26 11:40:33 +01:00
memstick memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host() 2021-11-26 11:40:30 +01:00
message
mfd mfd: Don't use irq_create_mapping() to resolve a mapping 2021-09-22 11:45:34 +02:00
misc cb710: avoid NULL pointer subtraction 2021-10-20 10:42:03 +02:00
mmc mmc: mxs-mmc: disable regulator on error and in the remove function 2021-11-26 11:40:31 +01:00
mtd mtd: spi-nor: hisi-sfc: Remove excessive clk_disable_unprepare() 2021-11-26 11:40:34 +01:00
mux
net can: kvaser_usb: get CAN clock frequency from device 2021-12-29 12:17:32 +01:00
nfc nfc: pn533: Fix double free when pn533_fill_fragment_skbs() fails 2021-11-26 11:40:36 +01:00
ntb
nubus
nvdimm
nvme nvme-rdma: don't update queue count when failing to set io queues 2021-09-22 11:45:17 +02:00
nvmem nvmem: Fix shift-out-of-bound (UBSAN) with byte size cells 2021-10-20 10:42:04 +02:00
of of: Fix truncation of memory sizes on 32-bit platforms 2021-07-20 16:17:40 +02:00
oprofile
parisc parisc: Move pci_dev_is_behind_card_dino to where it is used 2021-09-26 13:37:29 +02:00
parport parport: remove non-zero check on count 2021-09-22 11:45:31 +02:00
pci PCI/MSI: Mask MSI-X vectors only on success 2021-12-22 09:18:00 +01:00
pcmcia pcmcia: i82092: fix a null pointer dereference bug 2021-08-15 13:03:32 +02:00
perf perf/arm_pmu_platform: Fix error handling 2021-05-22 10:57:17 +02:00
phy phy: ti: dm816x: Fix the error handling path in 'dm816x_usb_phy_probe() 2021-07-20 16:17:41 +02:00
pinctrl pinctrl: armada-37xx: Correct PWM pins definitions 2021-12-08 08:46:51 +01:00
platform platform/x86: thinkpad_acpi: Fix WWAN device disabled issue after S3 deep 2021-12-08 08:46:53 +01:00
pnp
power power: supply: bq27xxx: Fix kernel crash on IRQ handler register error 2021-11-26 11:40:34 +01:00
powercap
pps
ps3
ptp ptp_pch: Load module automatically if ID matches 2021-10-17 10:08:33 +02:00
pwm pwm: rockchip: Don't modify HW state in .remove() callback 2021-09-26 13:37:30 +02:00
rapidio rapidio: handle create_workqueue() failure 2021-05-26 11:46:59 +02:00
ras
regulator regulator: s5m8767: do not use reset value as DVS voltage if GPIO DVS is disabled 2021-11-26 11:40:23 +01:00
remoteproc
reset reset: ti-syscon: fix to_ti_syscon_reset_data macro 2021-07-28 11:12:14 +02:00
rpmsg rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data() 2021-05-22 10:57:38 +02:00
rtc rtc: tps65910: Correct driver module alias 2021-09-22 11:45:23 +02:00
s390 s390/cio: check the subchannel validity for dev_busid 2021-11-26 11:40:37 +01:00
sbus
scsi scsi: scsi_debug: Sanity check block descriptor length in resp_mode_select() 2021-12-22 09:18:01 +01:00
sfi
sh maple: fix wrong return value of maple_bus_init(). 2021-11-26 11:40:39 +01:00
sn
soc soc/tegra: fuse: Fix bitwise vs. logical OR warning 2021-12-22 09:17:59 +01:00
spi spi: change clk_disable_unprepare to clk_unprepare 2021-12-29 12:17:32 +01:00
spmi
ssb ssb: sdio: Don't overwrite const buffer if block_write fails 2021-07-20 16:17:30 +02:00
staging usb: typec: tcpm: Wait in SNK_DEBOUNCED until disconnect 2021-12-08 08:46:56 +01:00
target scsi: target: Fix alua_tg_pt_gps_count tracking 2021-11-26 11:40:38 +01:00
tc
tee tee: optee: do not check memref size on return from Secure World 2021-05-22 10:57:16 +02:00
thermal thermal: core: Reset previous low and high trip during thermal zone init 2021-12-08 08:46:54 +01:00
thunderbolt thunderbolt: dma_port: Fix NVM read buffer bounds and offset issue 2021-06-03 08:36:15 +02:00
tty xen/console: harden hvc_xen against event channel storms 2021-12-22 09:18:01 +01:00
uio
usb USB: serial: option: add Telit FN990 compositions 2021-12-22 09:18:00 +01:00
uwb
vfio vfio: Use config not menuconfig for VFIO_NOIOMMU 2021-09-22 11:45:26 +02:00
vhost vhost/vsock: fix incorrect used length reported to the guest 2021-12-08 08:46:49 +01:00
video vgacon: Propagate console boot parameters before calling `vc_resize' 2021-12-08 08:46:56 +01:00
virt
virtio virtio: write back F_VERSION_1 before validate 2021-10-20 10:42:04 +02:00
vlynq
vme
w1 w1: ds2438: fixing bug that would always get page0 2021-07-20 16:17:49 +02:00
watchdog ar7: fix kernel builds for compiler test 2021-11-26 11:40:35 +01:00
xen xen: detect uninitialized xenbus in xenbus_init 2021-12-08 08:46:48 +01:00
zorro
Kconfig
Makefile