NVMe: handle allocation failure in nvme_map_user_pages()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 20 Jan 2012 12:55:30 +0000 (07:55 -0500)
committerMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 31 Jul 2012 17:15:43 +0000 (13:15 -0400)
commit22fff826e715e9727d3c7a69f15e602a9801b673
treeb7c317cb56682e691c8c22423b81a15530e77421
parentc7d36ab8fa04c213328119a9c0d66985fe204ee5
NVMe: handle allocation failure in nvme_map_user_pages()

We should return here and avoid a NULL dereference.

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