btrfs: Call kunmap if zlib_inflateInit2 fails
authorNick Terrell <nickrterrell@gmail.com>
Wed, 2 Nov 2016 03:25:27 +0000 (20:25 -0700)
committerDavid Sterba <dsterba@suse.com>
Wed, 30 Nov 2016 12:45:18 +0000 (13:45 +0100)
commitd1111a75479d52046d8a71eb3b071581ee55489a
tree82cf101f8f6610d0906a4b296723b674f1806a36
parented0df618b1b06d7431ee4d985317fc5419a5d559
btrfs: Call kunmap if zlib_inflateInit2 fails

If zlib_inflateInit2 fails, the input page is never unmapped.
Add a call to kunmap when it fails.

Signed-off-by: Nick Terrell <nickrterrell@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/zlib.c