NVMe: Fix calls to dma_unmap_sg
authorNisheeth Bhat <nisheeth.bhat@intel.com>
Thu, 15 Sep 2011 20:52:24 +0000 (16:52 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Fri, 4 Nov 2011 19:53:04 +0000 (15:53 -0400)
commitd1a490e026efb22851ed60588b5fad1281d80ec3
tree46f3b9050272ed0e41e364eeebf4e1eebb7bf79e
parentd0ba1e497bca83a3d353eb47c9658afc54d83228
NVMe: Fix calls to dma_unmap_sg

dma_unmap_sg() must be called with the same 'nents' passed to
dma_map_sg(), not the number returned from dma_map_sg().

Signed-off-by: Nisheeth Bhat <nisheeth.bhat@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
drivers/block/nvme.c