linux-stable/drivers
Quinn Tran 9e6ab1b713 scsi: qla2xxx: Fix incorrect reporting of task management failure
commit 58ca5999e0 upstream.

User experienced no task management error while target device is responding
with error. The RSP_CODE field in the status IOCB is in little endian.
Driver assumes it's big endian and it picked up erroneous data.

Convert the data back to big endian as is on the wire.

Link: https://lore.kernel.org/r/20220310092604.22950-2-njavali@marvell.com
Fixes: faef62d134 ("[SCSI] qla2xxx: Fix Task Management command asynchronous handling")
Cc: stable@vger.kernel.org
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Nilesh Javali <njavali@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-20 09:06:40 +02:00
..
accessibility
acpi ACPI/APEI: Limit printable size of BERT table data 2022-04-20 09:06:38 +02:00
amba ARM: 9120/1: Revert "amba: make use of -1 IRQs warn" 2021-11-12 13:18:01 +01:00
android binder: use wake_up_pollfree() 2021-12-14 10:04:48 +01:00
ata ata: pata_hpt37x: fix PCI clock detection 2022-03-08 19:00:57 +01:00
atm atm: eni: Add check for dma_map_single 2022-03-23 09:00:34 +01:00
auxdisplay auxdisplay: img-ascii-lcd: Fix lock-up when displaying empty string 2021-11-26 11:48:38 +01:00
base PM: core: keep irq flags in device_pm_check_callbacks() 2022-04-20 09:06:38 +02:00
bcma bcma: Fix memory leak for internally-handled cores 2021-09-22 11:43:02 +02:00
block loop: use sysfs_emit() in the sysfs xxx show() 2022-04-20 09:06:38 +02:00
bluetooth Bluetooth: bfusb: fix division by zero in send path 2022-01-27 08:47:30 +01: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: break out of buf poll on remove 2022-04-20 09:06:27 +02:00
clk clk: tegra: tegra124-emc: Fix missing put_device() call in emc_ensure_emc_driver 2022-04-20 09:06:37 +02:00
clocksource clocksource: acpi_pm: fix return value of __setup handler 2022-04-20 09:06:31 +02:00
connector
cpufreq cpufreq: schedutil: Destroy mutex before kobject_put() frees the memory 2021-10-06 10:23:41 +02:00
cpuidle cpuidle: Fix kobject memory leaks in error paths 2021-11-26 11:48:33 +01:00
crypto crypto: ccp - ccp_dmaengine_unregister release dma channels 2022-04-20 09:06:31 +02:00
dax
dca
devfreq
dio
dma dmaengine: shdma: Fix runtime PM imbalance on error 2022-03-08 19:00:57 +01:00
dma-buf
edac EDAC: Fix calculation of returned address and next offset in edac_align_ptr() 2022-02-23 11:56:41 +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 arm/arm64: smccc/psci: add arm_smccc_1_1_get_conduit() 2022-03-11 10:03:31 +01:00
fmc
fpga
gpio gpio: ts4900: Do not set DAT and OE together 2022-03-16 12:49:01 +01:00
gpu drm/tegra: Fix reference leak in tegra_dsi_ganged_probe 2022-04-20 09:06:35 +02:00
hid HID: i2c-hid: fix GET/SET_REPORT for unnumbered reports 2022-04-20 09:06:34 +02:00
hsi HSI: core: Fix return freed object in hsi_new_client 2022-01-27 08:47:37 +01:00
hv hyperv/vmbus: include linux/bitops.h 2021-11-26 11:48:20 +01:00
hwmon hwmon: (pmbus) Add Vin unit off handling 2022-04-20 09:06:31 +02:00
hwspinlock
hwtracing coresight: Fix TRCCONFIGR.QE sysfs interface 2022-04-20 09:06:28 +02:00
i2c i2c: mux: demux-pinctrl: do not deactivate a master that is not active 2022-04-20 09:06:36 +02:00
ide
idle
iio iio: adc: Add check for devm_request_threaded_irq 2022-04-20 09:06:36 +02:00
infiniband RDMA/ib_srp: Fix a deadlock 2022-03-02 11:32:03 +01:00
input Revert "Input: clear BTN_RIGHT/MIDDLE on buttonpads" 2022-04-20 09:06:29 +02:00
iommu iommu/amd: Fix loop timeout issue in iommu_ga_log_enable() 2022-02-08 18:15:29 +01:00
ipack ipack: ipoctal: fix module reference leak 2021-10-06 10:23:42 +02:00
irqchip irqchip/nvic: Release nvic_base upon failure 2022-04-20 09:06:38 +02:00
isdn mISDN: change function names to avoid conflicts 2022-01-11 13:38:13 +01:00
leds leds: ktd2692: Fix an error handling path 2021-07-20 16:21:05 +02:00
lguest
lightnvm
macintosh
mailbox
mcb mcb: fix error handling in mcb_alloc_bus() 2021-10-06 10:23:39 +02:00
md dm space map common: add bounds check to sm_ll_lookup_bitmap() 2022-01-27 08:47:38 +01:00
media media: hdpvr: initialize dev->worker at hdpvr_register_videodev 2022-04-20 09:06:40 +02:00
memory memory: emif: check the pointer temp in get_device_details() 2022-04-20 09:06:33 +02:00
memstick memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host() 2021-11-26 11:48:34 +01:00
message
mfd mfd: asic3: Add missing iounmap() on error asic3_mfd_probe 2022-04-20 09:06:36 +02:00
misc kgdbts: fix return value of __setup handler 2022-04-20 09:06:37 +02:00
mmc mmc: host: Return an error when ->enable_sdio_irq() ops is missing 2022-04-20 09:06:40 +02:00
mtd mtd: onenand: Check for error irq 2022-04-20 09:06:34 +02:00
net qlcnic: dcb: default to returning -EOPNOTSUPP 2022-04-20 09:06:37 +02:00
nfc nfc: st21nfca: Fix potential buffer overflows in EVT_TRANSACTION 2022-03-28 08:06:05 +02:00
ntb
nubus
nvdimm libnvdimm/dimm: Avoid race between probe and available_slots_show() 2021-03-03 17:44:44 +01:00
nvme nvme-pci: Fix an error handling path in 'nvme_probe()' 2021-09-22 11:42:57 +02:00
nvmem nvmem: Fix shift-out-of-bound (UBSAN) with byte size cells 2021-10-27 09:33:58 +02:00
of of: Fix truncation of memory sizes on 32-bit platforms 2021-07-20 16:21:05 +02:00
oprofile
parisc parisc: Fix sglist access in ccio-dma.c 2022-02-23 11:56:39 +01:00
parport parport: remove non-zero check on count 2021-09-22 11:43:07 +02:00
pci PCI: pciehp: Clear cmd_busy bit in polling mode 2022-04-20 09:06:30 +02:00
pcmcia pcmcia: fix setting of kthread task states 2022-01-27 08:47:35 +01:00
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/rockchip: Add missing of_node_put() in rockchip_pinctrl_probe 2022-04-20 09:06:37 +02:00
platform platform/x86: apple-gmux: use resource_size() with res 2022-01-05 12:31:24 +01:00
pnp
power power: supply: wm8350-power: Add missing free in free_charger_irq 2022-04-20 09:06:35 +02:00
powercap
pps
ps3
ptp ptp_pch: Load module automatically if ID matches 2021-10-17 10:05:39 +02:00
pwm pwm: lpc18xx-sct: Initialize driver data and hardware before pwmchip_add() 2022-04-20 09:06:36 +02:00
rapidio rapidio: handle create_workqueue() failure 2021-05-26 11:29:06 +02:00
ras
regulator regulator: s5m8767: do not use reset value as DVS voltage if GPIO DVS is disabled 2021-11-26 11:48:22 +01:00
remoteproc remoteproc: qcom_wcnss: Add missing of_node_put() in wcnss_alloc_memory_region 2022-04-20 09:06:36 +02:00
reset reset: ti-syscon: fix to_ti_syscon_reset_data macro 2021-07-28 09:14:24 +02:00
rpmsg
rtc rtc: cmos: Evaluate century appropriate 2022-02-08 18:15:29 +01:00
s390 scsi: zfcp: Fix failed recovery on gone remote port with non-NPIV FCP devices 2022-02-08 18:15:26 +01:00
sbus
scsi scsi: qla2xxx: Fix incorrect reporting of task management failure 2022-04-20 09:06:40 +02:00
sfi
sh maple: fix wrong return value of maple_bus_init(). 2021-11-26 11:48:41 +01:00
sn
soc soc: ti: wkup_m3_ipc: Fix IRQ check in wkup_m3_ipc_probe 2022-04-20 09:06:32 +02:00
spi spi: tegra20: Use of_device_get_match_data() 2022-04-20 09:06:38 +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: fbtft: fb_st7789v: reset display before initialization 2022-03-28 08:06:05 +02:00
target scsi: target: iscsi: Make sure the np under each tpg is unique 2022-02-16 12:43:53 +01:00
tc
thermal thermal: int340x: Increase bitmap size 2022-04-20 09:06:30 +02:00
thunderbolt
tty kgdboc: fix return value of __setup handler 2022-04-20 09:06:37 +02:00
uio
usb USB: storage: ums-realtek: fix error code in rts51x_read_mem() 2022-04-20 09:06:36 +02:00
uwb
vfio vfio: Use config not menuconfig for VFIO_NOIOMMU 2021-09-22 11:43:04 +02:00
vhost vhost/vsock: don't check owner in vhost_vsock_stop() while releasing 2022-03-02 11:32:00 +01:00
video video: fbdev: sm712fb: Fix crash in smtcfb_write() 2022-04-20 09:06:40 +02:00
virt
virtio virtio_pci: Support surprise removal of virtio pci device 2022-01-11 13:38:11 +01:00
vlynq
vme
w1 w1: Misuse of get_user()/put_user() reported by sparse 2022-01-27 08:47:39 +01:00
watchdog watchdog: f71808e_wdt: fix inaccurate report in WDIOC_GETTIMEOUT 2021-11-26 11:48:38 +01:00
xen xen/gnttab: fix gnttab_end_foreign_access() without page specified 2022-03-11 10:03:33 +01:00
zorro
Kconfig
Makefile