libnvdimm, pmem: fix kmap_atomic() leak in error path
authorDan Williams <dan.j.williams@intel.com>
Sun, 6 Mar 2016 23:20:51 +0000 (15:20 -0800)
committerDan Williams <dan.j.williams@intel.com>
Wed, 9 Mar 2016 23:12:41 +0000 (15:12 -0800)
commitb5ebc8ec693281c3c1efff7459a069cbd8b9a149
tree92bc9801d0107bdc3aa88a62bfa2cbc24582cd11
parentd4f323672aa63713b7ca26da418f66cc30d3a41a
libnvdimm, pmem: fix kmap_atomic() leak in error path

When we enounter a bad block we need to kunmap_atomic() before
returning.

Cc: <stable@vger.kernel.org>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/pmem.c