Jiapeng Chong
4c2d067114
mlx4: Fix missing error code in mlx4_load_one()
...
[ Upstream commit 7e4960b3d66d7248b23de3251118147812b42da2 ]
The error code is missing in this code scenario, add the error code
'-EINVAL' to the return value 'err'.
Eliminate the follow smatch warning:
drivers/net/ethernet/mellanox/mlx4/main.c:3538 mlx4_load_one() warn:
missing error code 'err'.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Fixes: 7ae0e400cd ("net/mlx4_core: Flexible (asymmetric) allocation of EQs and MSI-X vectors for PF/VFs")
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-08-04 11:58:03 +02:00
..
accessibility
acpi
ACPI: AMBA: Fix resource name in /proc/iomem
2021-07-20 16:21:14 +02:00
amba
amba: Fix resource leak for drivers without .remove
2021-03-03 17:44:38 +01:00
android
binder: Prevent context manager from incrementing ref 0
2020-08-21 11:01:55 +02:00
ata
ata: ahci_sunxi: Disable DIPM
2021-07-20 16:21:09 +02:00
atm
atm: nicstar: register the interrupt handler in the right place
2021-07-20 16:21:08 +02:00
auxdisplay
base
Revert "device property: Keep secondary firmware node secondary by type"
2021-01-12 19:49:05 +01:00
bcma
bcma: fix incorrect update of BCMA_CORE_PCI_MDIO_DATA
2020-01-29 10:24:31 +01:00
block
virtio-blk: Fix memory leak among suspend/resume procedure
2021-07-20 16:21:14 +02:00
bluetooth
Bluetooth: btusb: fix bt fiwmare downloading failure issue for qca btsoc.
2021-07-20 16:21:08 +02:00
bus
bus: qcom: Put child node before return
2021-05-22 10:40:23 +02:00
cdrom
cdrom: gdrom: initialize global variable at init time
2021-05-26 11:29:07 +02:00
char
virtio_console: Assure used length from device is limited
2021-07-20 16:21:14 +02:00
clk
clk: tegra: Ensure that PLLU configuration is applied properly
2021-07-20 16:21:06 +02:00
clocksource
clocksource/drivers/mxs_timer: Add missing semicolon when DEBUG is defined
2021-03-03 17:44:37 +01:00
connector
cpufreq
cpufreq: powernow-k8: pass policy rather than use cpufreq_cpu_get()
2021-01-17 13:57:54 +01:00
cpuidle
cpuidle: Fix three reference count leaks
2020-06-20 10:24:18 +02:00
crypto
crypto: nx - Fix RCU warning in nx842_OF_upd_status
2021-07-20 16:21:01 +02:00
dax
dca
devfreq
PM / devfreq: tegra30: Fix integer overflow on CPU's freq max out
2020-10-01 20:40:02 +02:00
dio
dma
dmaengine: pl330: fix wrong usage of spinlock flags in dma_cyclc
2021-06-30 08:49:17 -04:00
dma-buf
edac
EDAC/i5100: Fix error handling order in i5100_init_one()
2020-10-29 09:05:32 +01:00
eisa
extcon
extcon: max8997: Add missing modalias string
2021-07-20 16:21:05 +02:00
firewire
firewire: nosy: Fix a use-after-free bug in nosy_ioctl()
2021-04-07 12:05:40 +02:00
firmware
qemu_fw_cfg: Make fw_cfg_rev_attr a proper kobj_attribute
2021-07-20 16:21:09 +02:00
fmc
fpga
gpio
gpio: zynq: Check return value of pm_runtime_get_sync
2021-07-20 16:21:12 +02:00
gpu
drm/virtio: Fix double free on probe failure
2021-07-20 16:21:06 +02:00
hid
HID: gt683r: add missing MODULE_DEVICE_TABLE
2021-06-30 08:49:11 -04:00
hsi
HSI: core: fix resource leaks in hsi_add_client_from_dt()
2021-05-22 10:40:26 +02:00
hv
Drivers: hv: vmbus: Increase wait time for VMbus unload
2021-05-22 10:40:24 +02:00
hwmon
hwmon: (max31790) Fix fan speed reporting for fan7..12
2021-07-20 16:21:01 +02:00
hwspinlock
hwtracing
intel_th: Consistency and off-by-one fix
2021-05-22 10:40:16 +02:00
i2c
i2c: core: Disable client irq on reboot/shutdown
2021-07-20 16:21:12 +02:00
ide
block: Move SECTOR_SIZE and SECTOR_SHIFT definitions into <linux/blkdev.h>
2020-09-12 11:47:36 +02:00
idle
iio
iio: accel: bma180: Fix BMA25x bandwidth register values
2021-07-28 09:14:29 +02:00
infiniband
RDMA/cma: Fix rdma_resolve_route() memory leak
2021-07-20 16:21:08 +02:00
input
Input: hil_kbd - fix error return code in hil_dev_connect()
2021-07-20 16:21:04 +02:00
iommu
iommu/amd: Fix backport of 140456f994195b568ecd7fc2287a34eadffef3ca
2021-08-04 11:58:01 +02:00
ipack
ipack/carriers/tpci200: Fix a double free in tpci200_pci_probe
2021-07-20 16:21:10 +02:00
irqchip
irqchip/alpine-msi: Fix freeing of interrupts on allocation error path
2020-12-29 13:45:00 +01:00
isdn
mISDN: fix possible use-after-free in HFC_cleanup()
2021-07-20 16:21:06 +02:00
leds
leds: ktd2692: Fix an error handling path
2021-07-20 16:21:05 +02:00
lguest
lightnvm
macintosh
drivers/macintosh: Fix memleak in windfarm_pm112 driver
2020-06-20 10:24:21 +02:00
mailbox
mcb
md
dm btree remove: assign new_root only when removal succeeds
2021-07-20 16:21:10 +02:00
media
media: ngene: Fix out-of-bounds bug in ngene_command_config_free_buf()
2021-07-28 09:14:29 +02:00
memory
memory: fsl_ifc: fix leak of private memory on probe failure
2021-07-20 16:21:15 +02:00
memstick
memstick: r592: Fix error return in r592_probe()
2020-12-29 13:44:58 +01:00
message
scsi: mptfusion: Fix null pointer dereferences in mptscsih_remove()
2020-11-10 10:23:57 +01:00
mfd
mfd: da9052/stmpe: Add and modify MODULE_DEVICE_TABLE
2021-07-20 16:21:11 +02:00
misc
misc/libmasm/module: Fix two use after free in ibmasm_init_one
2021-07-20 16:21:11 +02:00
mmc
mmc: core: clear flags before allowing to retune
2021-07-20 16:21:09 +02:00
mtd
mtd: rawnand: gpmi: Fix a double free in gpmi_nand_init
2021-05-22 10:40:24 +02:00
net
mlx4: Fix missing error code in mlx4_load_one()
2021-08-04 11:58:03 +02:00
nfc
nfc: nfcsim: fix use after free during module unload
2021-08-04 11:58:03 +02:00
ntb
NTB: hw: amd: fix an issue about leak system resources
2020-10-29 09:05:41 +01:00
nubus
nvdimm
libnvdimm/dimm: Avoid race between probe and available_slots_show()
2021-03-03 17:44:44 +01:00
nvme
nvmet: don't check iosqes,iocqes for discovery controllers
2021-03-24 10:59:23 +01:00
nvmem
nvmem: qfprom: remove incorrect write support
2020-06-11 09:22:22 +02:00
of
of: Fix truncation of memory sizes on 32-bit platforms
2021-07-20 16:21:05 +02:00
oprofile
parisc
parisc: mask out enable and reserved bits from sba imask
2020-08-21 11:02:06 +02:00
parport
pci
PCI/sysfs: Fix dsm_label_utf16s_to_utf8s() buffer overrun
2021-07-20 16:21:14 +02:00
pcmcia
perf
phy
phy: ti: dm816x: Fix the error handling path in 'dm816x_usb_phy_probe()
2021-07-20 16:21:05 +02:00
pinctrl
pinctrl/amd: Add device HID for new AMD GPIO controller
2021-07-20 16:21:09 +02:00
platform
platform/x86: toshiba_acpi: Fix missing error code in toshiba_acpi_setup_keyboard()
2021-07-20 16:21:00 +02:00
pnp
power
power: supply: rt5033_battery: Fix device tree enumeration
2021-07-20 16:21:14 +02:00
powercap
powercap: restrict energy meter to root access
2020-11-10 21:04:57 +01:00
pps
ps3
powerpc/ps3: use dma_mapping_error()
2020-12-29 13:45:00 +01:00
ptp
ptp: free ptp device pin descriptors properly
2020-05-20 08:15:33 +02:00
pwm
pwm: tegra: Don't modify HW state in .remove callback
2021-07-20 16:21:14 +02:00
rapidio
rapidio: handle create_workqueue() failure
2021-05-26 11:29:06 +02:00
ras
regulator
regulator: da9052: Ensure enough delay time for .set_voltage_time_sel
2021-07-20 16:20:59 +02:00
remoteproc
remoteproc: qcom_q6v5_mss: Validate MBA firmware size before load
2021-02-23 13:59:14 +01:00
reset
reset: ti-syscon: fix to_ti_syscon_reset_data macro
2021-07-28 09:14:24 +02:00
rpmsg
rtc
rtc: max77686: Do not enforce (incorrect) interrupt trigger type
2021-07-28 09:14:25 +02:00
s390
s390/sclp_vt220: fix console name to match device
2021-07-20 16:21:11 +02:00
sbus
scsi
scsi: iscsi: Fix iface sysfs attr detection
2021-07-28 09:14:27 +02:00
sfi
sh
sn
soc
soc/fsl: qbman: fix conflicting alignment attributes
2021-04-16 11:59:08 +02:00
spi
spi: mediatek: fix fifo rx mode
2021-07-28 09:14:27 +02:00
spmi
ssb
ssb: sdio: Don't overwrite const buffer if block_write fails
2021-07-20 16:20:57 +02:00
staging
staging: gdm724x: check for overflow in gdm_lte_netif_rx()
2021-07-20 16:21:05 +02:00
target
scsi: target: Fix protect handling in WRITE SAME(32)
2021-07-28 09:14:27 +02:00
tc
thermal
thermal/core: Correct function name thermal_zone_device_unregister()
2021-07-28 09:14:25 +02:00
thunderbolt
tty
tty: serial: 8250: serial_cs: Fix a memory leak in error handling path
2021-07-20 16:21:11 +02:00
uio
uio_pdrv_genirq: fix use without device tree and no interrupt
2020-07-22 09:10:53 +02:00
usb
USB: serial: cp210x: add ID for CEL EM3588 USB ZigBee stick
2021-07-28 09:14:28 +02:00
uwb
vfio
vfio/platform: fix module_put call in error flow
2021-06-10 12:42:35 +02:00
vhost
vhost: Fix vhost_vq_reset()
2021-04-07 12:05:39 +02:00
video
backlight: lm3630a: Fix return code of .update_status() callback
2021-07-20 16:21:12 +02:00
virt
drivers/virt/fsl_hypervisor: Fix error handling path
2020-10-29 09:05:35 +01:00
virtio
virtio_ring: Avoid loop when vq is broken in virtqueue_poll
2020-08-26 10:29:05 +02:00
vlynq
vme
vme: bridges: reduce stack usage
2020-02-28 15:42:33 +01:00
w1
w1: mxc_w1: Fix timeout resolution problem leading to bus error
2020-11-10 10:23:57 +01:00
watchdog
watchdog: aspeed: fix hardware timeout calculation
2021-07-20 16:21:14 +02:00
xen
xen/events: reset active flag for lateeoi events later
2021-07-11 12:46:41 +02:00
zorro
Kconfig
Makefile