diff options
author | Hannes Reinecke <hare@suse.de> | 2018-07-25 08:35:17 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-07-25 13:14:03 +0200 |
commit | 5613d31214eb4c5c04cdfce4966bb661c8b43191 (patch) | |
tree | 30c1c8e56e16dfc432d947e6615626275b22d7cc /tools/perf/scripts/python/bin/export-to-sqlite-record | |
parent | 6cdefc6e2ad52170f89a8d0e8b1a1339f91834dc (diff) | |
download | linux-5613d31214eb4c5c04cdfce4966bb661c8b43191.tar.bz2 |
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>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-sqlite-record')
0 files changed, 0 insertions, 0 deletions