libnvdimm, pmem: fix kmap_atomic() leak in error path
commit b5ebc8ec upstream. When we enounter a bad block we need to kunmap_atomic() before returning. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
Please register or sign in to comment