]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0f95c2da59bab59c04d373687d5ab4641abdd59f
tree35400590bfecbbdff6c8df86819b509356df43fd
parent38d70f5e42088fb3ec9f82cbe06f7438b2f3ee8f
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: a55b0f9e9ae9 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