linux-stable/drivers
min15.li 5e6898b854 nvme: fix miss command type check
commit 31a5978243 upstream.

In the function nvme_passthru_end(), only the value of the command
opcode is checked, without checking the command type (IO command or
Admin command). When we send a Dataset Management command (The opcode
of the Dataset Management command is the same as the Set Feature
command), kernel thinks it is a set feature command, then sets the
controller's keep alive interval, and calls nvme_keep_alive_work().

Signed-off-by: min15.li <min15.li@samsung.com>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Fixes: b58da2d270 ("nvme: update keep alive interval when kato is modified")
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-10 16:28:35 +02:00
..
accessibility
acpi ACPICA: debugger: check status of acpi_evaluate_object() in acpi_db_walk_for_fields() 2024-04-10 16:28:22 +02:00
amba
android
ata ata: sata_mv: Fix PCI device ID table declaration compilation warning 2024-04-10 16:28:31 +02:00
atm
auxdisplay
base driver core: Introduce device_link_wait_removal() 2024-04-10 16:28:32 +02:00
bcma
block
bluetooth Bluetooth: qca: fix device-address endianness 2024-04-10 16:28:24 +02:00
bus
cdrom
char
clk
clocksource
comedi
connector
counter
cpufreq
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma
dma-buf dma-buf: Fix NULL pointer dereference in sanitycheck() 2024-04-10 16:28:21 +02:00
edac
eisa
extcon
firewire
firmware
fpga
fsi
gnss
gpio
gpu drm/panfrost: fix power transition timeout warnings 2024-04-10 16:28:31 +02:00
greybus
hid
hsi
hte
hv
hwmon
hwspinlock
hwtracing
i2c
i3c
idle
iio
infiniband
input
interconnect
iommu
ipack
irqchip
isdn
leds
macintosh
mailbox
mcb
md dm integrity: fix out-of-range warning 2024-04-10 16:28:23 +02:00
media
memory
memstick
message
mfd
misc
mmc
most
mtd
mux
net net: ravb: Always update error counters 2024-04-10 16:28:30 +02:00
nfc
ntb
nubus
nvdimm
nvme nvme: fix miss command type check 2024-04-10 16:28:35 +02:00
nvmem
of of: dynamic: Synchronize of_changeset_destroy() with the devlink removals 2024-04-10 16:28:32 +02:00
opp
parisc
parport
pci
pcmcia
peci
perf drivers/perf: riscv: Disable PERF_SAMPLE_BRANCH_* while not supported 2024-04-10 16:28:30 +02:00
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 s390/qeth: handle deferred cc1 2024-04-10 16:28:21 +02:00
sbus
scsi scsi: sd: Unregister device if device_add_disk() failed in sd_probe() 2024-04-10 16:28:31 +02:00
sh
siox
slimbus
soc
soundwire
spi
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
ufs
uio
usb USB: core: Fix deadlock in usb_deauthorize_interface() 2024-04-03 15:19:55 +02:00
vdpa
vfio
vhost
video
virt
virtio
vlynq
w1
watchdog
xen
zorro
Kconfig
Makefile