nvme: move command size checks to the core
authorChristoph Hellwig <hch@lst.de>
Tue, 30 Apr 2019 15:36:52 +0000 (11:36 -0400)
committerChristoph Hellwig <hch@lst.de>
Wed, 1 May 2019 13:18:36 +0000 (09:18 -0400)
commit811015409fd4af80bbecb8e46b3aa24c8986fb74
tree65c9e6912250cc4889af4b036014bf4ac565e47c
parenta2faf94e57c5237a9cad31f63eeaf2412ed0e951
nvme: move command size checks to the core

Most command aren't PCIe specific, so move the size checking for them
to core.c

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
drivers/nvme/host/core.c
drivers/nvme/host/pci.c