aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/fc.c
diff options
context:
space:
mode:
authorMartin Wilck <mwilck@suse.com>2017-07-20 18:34:02 +0200
committerChristoph Hellwig <hch@lst.de>2017-08-10 10:43:31 +0200
commit758f3735580c21b8a36d644128af6608120a1dde (patch)
tree34f4a8c0eeed293d6ab28004118d9246331993b5 /drivers/nvme/target/fc.c
parentnvme: validate admin queue before unquiesce (diff)
downloadlinux-dev-758f3735580c21b8a36d644128af6608120a1dde.tar.xz
linux-dev-758f3735580c21b8a36d644128af6608120a1dde.zip
nvme: strip trailing 0-bytes in wwid_show
Some broken controllers (such as earlier Linux targets) pad model or serial fields with 0-bytes rather than spaces. The NVMe spec disallows 0 bytes in "ASCII" fields. Thus strip trailing 0-bytes, too. Also make sure that we get no underflow for pathological input. Signed-off-by: Martin Wilck <mwilck@suse.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Keith Busch <keith.busch@intel.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions