]> Pileus Git - ~andy/linux/commit
NVMe: Fix off-by-one when filling in PRP lists
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Wed, 16 Mar 2011 20:43:40 +0000 (16:43 -0400)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Fri, 4 Nov 2011 19:53:00 +0000 (15:53 -0400)
commit7523d834dd1573610078eb1ac0933f6490232f90
tree898be553899785ac400e98f23f99881e51a2c8f8
parentac88c36a385b848cb9efcb877fdfc4153a60bcab
NVMe: Fix off-by-one when filling in PRP lists

If the last element in the PRP list fits on the end of the page, there's
no need to allocate an extra page to put that single element in.  It can
fit on the end of the page.

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