]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
nvme: factor out a nvme_validate_passthru_nsid helper
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Mon, 7 Jun 2021 19:54:50 +0000 (12:54 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 Jun 2021 03:36:16 +0000 (05:36 +0200)
commite7d4b5493a2d5a6225fc572e01167e12f89c6a42
tree8b3f16f59dc03e7069a900229df7b98ac54fdb5c
parentd399742cd02dca6d1ed17ae7db7a366192516591
nvme: factor out a nvme_validate_passthru_nsid helper

Add a helper nvme_validate_passthru_nsid() to validate the nsid that
removes the nsid validation and error message print code from
nvme_user_cmd() and nvme_user_cmd64().

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/ioctl.c