]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: fix directive command numd calculation
authorKwan (Hingkwan) Huen-SSI <kwan.huen@samsung.com>
Wed, 9 Aug 2017 18:26:29 +0000 (11:26 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 10 Aug 2017 17:53:44 +0000 (19:53 +0200)
commit38d70f5e42088fb3ec9f82cbe06f7438b2f3ee8f
treec1b780f80bbaf854dc07447a8ccd281ffc791eda
parent3916f7927bc58cd2342ecf5f5a7c4128efc7cfb2
nvme: fix directive command numd calculation

The numd field of directive receive command takes number of dwords to
transfer. This fix has the correct calculation for numd.

Signed-off-by: Kwan (Hingkwan) Huen-SSI <kwan.huen@samsung.com>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c