linux-sg2042/drivers/nvme/target
Hannes Reinecke 5613d31214 nvmet: fixup crash on NULL device path
When writing an empty string into the device_path attribute the kernel
will crash with

nvmet: failed to open block device (null): (-22)
BUG: unable to handle kernel NULL pointer dereference at 0000000000000000

This patch sanitizes the error handling for invalid device path settings.

Fixes: a07b4970 ("nvmet: add a generic NVMe target")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2018-07-25 13:14:03 +02:00
..
Kconfig nvmet-rdma: depend on INFINIBAND_ADDR_TRANS 2018-04-27 11:15:43 -04:00
Makefile nvmet: add simple file backed ns support 2018-05-25 16:50:12 +02:00
admin-cmd.c nvmet: free smart-log buffer after use 2018-06-11 16:18:05 +02:00
configfs.c nvmet: fixup crash on NULL device path 2018-07-25 13:14:03 +02:00
core.c nvmet: reset keep alive timer in controller enable 2018-06-20 14:20:51 +02:00
discovery.c nvmet: remove duplicate NULL initialization for req->ns 2018-05-25 16:50:12 +02:00
fabrics-cmd.c nvmet: remove duplicate NULL initialization for req->ns 2018-05-25 16:50:12 +02:00
fc.c nvmet-fc: fix target sgl list on large transfers 2018-07-24 13:44:09 +02:00
fcloop.c Merge branch 'for-4.16/block' of git://git.kernel.dk/linux-block 2018-01-29 11:51:49 -08:00
io-cmd-bdev.c nvmet: add simple file backed ns support 2018-05-25 16:50:12 +02:00
io-cmd-file.c nvmet: fix error return code in nvmet_file_ns_enable() 2018-05-31 18:46:46 +02:00
loop.c nvme: if_ready checks to fail io to deleting controller 2018-07-24 13:44:40 +02:00
nvmet.h nvmet: mask pending AENs 2018-06-01 14:37:35 +02:00
rdma.c nvmet: constify struct nvmet_fabrics_ops 2018-03-26 08:53:43 -06:00