linux_dsm_epyc7002/drivers
Niklas Cassel 108a58585b nvme: do not call del_gendisk() on a disk that was never added
device_add_disk() is negated by del_gendisk().
alloc_disk_node() is negated by put_disk().

In nvme_alloc_ns(), device_add_disk() is one of the last things being
called in the success case, and only void functions are being called
after this. Therefore this call should not be negated in the error path.

The superfluous call to del_gendisk() leads to the following prints:
[    7.839975] kobject: '(null)' (000000001ff73734): is not initialized, yet kobject_put() is being called.
[    7.840865] WARNING: CPU: 2 PID: 361 at lib/kobject.c:736 kobject_put+0x70/0x120

Fixes: 33cfdc2aa6 ("nvme: enforce extended LBA format for fabrics metadata")
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-06-11 09:10:05 -06:00
..
accessibility
acpi ACPI updates for 5.8-rc1 2020-06-02 13:25:52 -07:00
amba
android
ata for-5.8/block-2020-06-01 2020-06-02 15:29:19 -07:00
atm
auxdisplay
base for-5.8/block-2020-06-01 2020-06-02 15:29:19 -07:00
bcma
block loop: Fix wrong masking of status flags 2020-06-04 21:13:45 -06:00
bluetooth
bus
cdrom
char drm pull for 5.8-rc1 2020-06-02 15:04:15 -07:00
clk Power management updates for 5.8-rc1 2020-06-02 13:17:23 -07:00
clocksource
connector
counter
cpufreq
cpuidle
crypto Merge branch 'uaccess.access_ok' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-06-01 16:09:43 -07:00
dax vfs: track per-sb writeback errors and report them to syncfs 2020-06-02 10:59:05 -07:00
dca
devfreq
dio
dma
dma-buf drm pull for 5.8-rc1 2020-06-02 15:04:15 -07:00
edac
eisa
extcon
firewire
firmware Merge branch 'uaccess.access_ok' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-06-01 16:09:43 -07:00
fpga Merge branch 'uaccess.access_ok' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-06-01 16:09:43 -07:00
fsi
gnss
gpio
gpu drm pull for 5.8-rc1 2020-06-02 15:04:15 -07:00
greybus
hid
hsi
hv
hwmon
hwspinlock
hwtracing A fair amount of stuff this time around, dominated by yet another massive 2020-06-01 15:45:27 -07:00
i2c
i3c
ide
idle
iio A fair amount of stuff this time around, dominated by yet another massive 2020-06-01 15:45:27 -07:00
infiniband Merge branch 'uaccess.access_ok' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-06-01 16:09:43 -07:00
input
interconnect
iommu
ipack
irqchip
isdn
leds
lightnvm for-5.8/block-2020-06-01 2020-06-02 15:29:19 -07:00
macintosh
mailbox
mcb
md for-5.8/drivers-2020-06-01 2020-06-02 15:37:03 -07:00
media MMC core: 2020-06-02 12:48:58 -07:00
memory
memstick
message
mfd platform-drivers-x86 for v5.8-1 2020-06-02 12:56:58 -07:00
misc Power management updates for 5.8-rc1 2020-06-02 13:17:23 -07:00
mmc
most
mtd for-5.8/block-2020-06-01 2020-06-02 15:29:19 -07:00
mux
net Power management updates for 5.8-rc1 2020-06-02 13:17:23 -07:00
nfc Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2020-06-01 12:00:10 -07:00
ntb
nubus
nvdimm
nvme nvme: do not call del_gendisk() on a disk that was never added 2020-06-11 09:10:05 -06:00
nvmem
of
opp
oprofile
parisc
parport
pci ACPI updates for 5.8-rc1 2020-06-02 13:25:52 -07:00
pcmcia powerpc: add an ioremap_phb helper 2020-06-02 10:59:10 -07:00
perf arm64 updates for 5.8 2020-06-01 15:18:27 -07:00
phy
pinctrl
platform platform-drivers-x86 for v5.8-1 2020-06-02 12:56:58 -07:00
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390 for-5.8/drivers-2020-06-01 2020-06-02 15:37:03 -07:00
sbus
scsi for-5.8/drivers-2020-06-01 2020-06-02 15:37:03 -07:00
sfi
sh
siox
slimbus
soc Power management updates for 5.8-rc1 2020-06-02 13:17:23 -07:00
soundwire
spi
spmi
ssb
staging MMC core: 2020-06-02 12:48:58 -07:00
target
tc
tee
thermal
thunderbolt
tty Merge branch 'uaccess.access_ok' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2020-06-01 16:09:43 -07:00
uio
usb platform-drivers-x86 for v5.8-1 2020-06-02 12:56:58 -07:00
vdpa
vfio
vhost
video drm pull for 5.8-rc1 2020-06-02 15:04:15 -07:00
virt
virtio
visorbus
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile