linux-stable/drivers
Vadim Pasternak 3264e9875e platform/mellanox: mlxreg-lc: Fix error flow and extend verbosity
[ Upstream commit b4b830a34d ]

Fix error flow:
- Clean-up client object in case of probing failure.
- Prevent running remove routine in case of probing failure.
  Probing and removing are invoked by hotplug events raised upon line
  card insertion and removing. If probing procedure failed all data is
  cleared and there is nothing to do in remove routine.

Fixes: 62f9529b8d ("platform/mellanox: mlxreg-lc: Add initial support for Nvidia line card devices")
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20220719153540.61304-1-vadimp@nvidia.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:41:54 +02:00
..
accessibility
acpi ACPI: VIOT: Fix ACS setup 2022-08-17 14:40:36 +02:00
amba
android binder: fix redefinition of seq_file attributes 2022-08-17 14:41:45 +02:00
ata
atm
auxdisplay
base driver core: fix potential deadlock in __driver_attach 2022-08-17 14:41:39 +02:00
bcma
block
bluetooth Bluetooth: Add default wakeup callback for HCI UART driver 2022-08-17 14:41:11 +02:00
bus bus: hisi_lpc: fix missing platform_device_put() in hisi_lpc_acpi_probe() 2022-08-17 14:40:35 +02:00
cdrom
char
clk clk: qcom: gcc-msm8939: Fix weird field spacing in ftbl_gcc_camss_cci_clk 2022-08-17 14:41:50 +02:00
clocksource
comedi
connector
counter
cpufreq cpufreq: pmac32-cpufreq: Fix refcount leak bug 2022-07-22 10:21:48 +02:00
cpuidle
crypto crypto: hisilicon/sec - fix auth key size error 2022-08-17 14:41:14 +02:00
cxl
dax
dca
devfreq
dio
dma dmaengine: imx-dma: Cast of_device_get_match_data() with (uintptr_t) 2022-08-17 14:41:51 +02:00
dma-buf
edac EDAC/synopsys: Re-enable the error interrupts on v3 hw 2022-08-03 12:05:29 +02:00
eisa
extcon
firewire
firmware firmware: tegra: Fix error check return value of debugfs_create_file() 2022-08-17 14:40:25 +02:00
fpga fpga: altera-pr-ip: fix unsigned comparison with less than zero 2022-08-17 14:41:21 +02:00
fsi
gnss
gpio gpio: gpiolib-of: Fix refcount bugs in of_mm_gpiochip_add_data() 2022-08-17 14:41:51 +02:00
gpu drm/amd/display: fix signedness bug in execute_synaptics_rc_command() 2022-08-17 14:41:12 +02:00
greybus
hid HID: amd_sfh: Handle condition of "no sensors" 2022-08-17 14:41:53 +02:00
hsi
hv
hwmon hwmon: (drivetemp) Add module alias 2022-08-17 14:40:39 +02:00
hwspinlock
hwtracing intel_th: msu: Fix vmalloced buffers 2022-08-17 14:41:45 +02:00
i2c i2c: mux-gpmux: Add of_node_put() when breaking out of loop 2022-08-17 14:41:12 +02:00
i3c
idle intel_idle: Fix false positive RCU splats due to incorrect hardirqs state 2022-08-03 12:05:18 +02:00
iio iio: adc: max1027: unlock on error path in max1027_read_single_value() 2022-08-17 14:41:51 +02:00
infiniband RDMA/rxe: Fix rnr retry behavior 2022-08-17 14:41:52 +02:00
input
interconnect interconnect: imx: fix max_node_id 2022-08-17 14:41:49 +02:00
iommu
ipack
irqchip irqchip/mips-gic: Check the return value of ioremap() in gic_of_init() 2022-08-17 14:40:22 +02:00
isdn
leds
macintosh macintosh/adb: fix oob read in do_adb_query() function 2022-08-11 13:20:44 +02:00
mailbox
mcb
md dm: return early from dm_pr_call() if DM device is suspended 2022-08-17 14:40:42 +02:00
media media: amphion: only insert the first sequence startcode for vc1l format 2022-08-17 14:41:02 +02:00
memory
memstick memstick/ms_block: Fix a memory leak 2022-08-17 14:41:46 +02:00
message
mfd
misc eeprom: idt_89hpesx: uninitialized data in idt_dbgfs_csr_write() 2022-08-17 14:41:48 +02:00
mmc mmc: cavium-thunderx: Add of_node_put() when breaking out of loop 2022-08-17 14:41:52 +02:00
most
mtd mtd: spi-nor: fix spi_nor_spimem_setup_op() call in spi_nor_erase_{sector,chip}() 2022-08-17 14:41:53 +02:00
mux
net mwifiex: fix sleep in atomic context bugs caused by dev_coredumpv 2022-08-17 14:41:37 +02:00
nfc NFC: nxp-nci: don't print header length mismatch on i2c error 2022-07-22 10:21:49 +02:00
ntb
nubus
nvdimm
nvme scsi: nvme-fc: Add new routine nvme_fc_io_getuuid() 2022-08-17 14:40:41 +02:00
nvmem
of of: device: Fix missing of_node_put() in of_dma_set_restricted_buffer 2022-08-17 14:41:46 +02:00
opp
parisc parisc: Check the return value of ioremap() in lba_driver_probe() 2022-08-17 14:40:09 +02:00
parport
pci PCI: tegra194: Fix link up retry sequence 2022-08-17 14:41:53 +02:00
pcmcia
peci
perf drivers/perf: arm_spe: Fix consistency of SYS_PMSCR_EL1.CX 2022-08-17 14:40:41 +02:00
phy phy: rockchip-inno-usb2: Ignore OTG IRQs in host mode 2022-08-17 14:41:48 +02:00
pinctrl pinctrl: Don't allow PINCTRL_AMD to be a module 2022-08-17 14:40:26 +02:00
platform platform/mellanox: mlxreg-lc: Fix error flow and extend verbosity 2022-08-17 14:41:54 +02:00
pnp
power power/reset: arm-versatile: Fix refcount leak in versatile_reboot_probe 2022-07-29 17:27:58 +02:00
powercap
pps
ps3
ptp
pwm pwm: lpc18xx: Fix period handling 2022-08-17 14:40:43 +02:00
rapidio
ras
regulator regulator: of: Fix refcount leak bug in of_get_regulation_constraints() 2022-08-17 14:40:40 +02:00
remoteproc
reset
rpmsg
rtc rtc: rx8025: fix 12/24 hour mode detection on RX-8035 2022-08-17 14:40:11 +02:00
s390 s390/ap: fix error handling in __verify_queue_reservations() 2022-07-22 10:21:57 +02:00
sbus
scsi scsi: smartpqi: Fix DMA direction for RAID requests 2022-08-17 14:41:47 +02:00
sh
siox
slimbus
soc soc: qcom: socinfo: Fix the id of SA8540P SoC 2022-08-17 14:40:40 +02:00
soundwire soundwire: revisit driver bind/unbind and callbacks 2022-08-17 14:41:44 +02:00
spi spi: tegra20-slink: fix UAF in tegra_slink_remove() 2022-08-17 14:40:38 +02:00
spmi
ssb
staging staging: fbtft: core: set smem_len before fb_deferred_io_init call 2022-08-17 14:41:53 +02:00
target
tc
tee tee: tee_get_drvdata(): fix description of return value 2022-07-22 10:21:44 +02:00
thermal thermal: sysfs: Fix cooling_device_stats_setup() error code path 2022-08-17 14:40:08 +02:00
thunderbolt
tty serial: mvebu-uart: uart2 error bits clearing 2022-08-17 14:40:16 +02:00
uio
usb usb: cdns3: change place of 'priv_ep' assignment in cdns3_gadget_ep_dequeue(), cdns3_gadget_ep_enable() 2022-08-17 14:41:53 +02:00
vdpa vduse: Tie vduse mgmtdev and its device 2022-07-22 10:21:46 +02:00
vfio
vhost
video fbcon: Fix accelerated fbdev scrolling while logo is still shown 2022-08-17 14:40:08 +02:00
virt
virtio virtio_mmio: Restore guest page size on resume 2022-07-22 10:21:47 +02:00
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile