nvmet: use memcpy_and_pad for identify sn/fr
authorMartin Wilck <mwilck@suse.com>
Mon, 14 Aug 2017 20:12:39 +0000 (22:12 +0200)
committerSagi Grimberg <sagi@grimberg.me>
Mon, 28 Aug 2017 20:00:42 +0000 (23:00 +0300)
commit17c39d053a46b300fee786857458857086a4844e
tree09d28d5d504bd2af3d64f73a0f7888f398833e83
parent01f33c336e2d298ea5d4ce5d6e5bcd12865cc30f
nvmet: use memcpy_and_pad for identify sn/fr

This changes the earlier patch "nvmet: don't report 0-bytes
in serial number" to use the memcpy_and_pad() helper introduced
in a previous patch.

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