nvmet: don't overwrite identify sn/fr with 0-bytes
authorMartin Wilck <mwilck@suse.com>
Mon, 14 Aug 2017 20:12:37 +0000 (22:12 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 Aug 2017 08:06:10 +0000 (10:06 +0200)
commit42819eb7a0957cc340ad4ed8bba736bab5ebc464
tree35400590bfecbbdff6c8df86819b509356df43fd
parenta082b426286d1ead97fb87646ea361d528be023d
nvmet: don't overwrite identify sn/fr with 0-bytes

The merged version of my patch "nvmet: don't report 0-bytes in serial
number" fails to remove two lines which should have been replaced,
so that the space-padded strings are overwritten again with 0-bytes.
Fix it.

Fixes: 42de82a8b544 nvmet: don't report 0-bytes in serial number
Signed-off-by: Martin Wilck <mwilck@suse.com>
Reviewed-by: Sagi Grimberg <sagi@grimbeg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/admin-cmd.c