]> Git Repo - linux.git/commit - fs/btrfs/zlib.c
btrfs: Call kunmap if zlib_inflateInit2 fails
authorNick Terrell <[email protected]>
Wed, 2 Nov 2016 03:25:27 +0000 (20:25 -0700)
committerDavid Sterba <[email protected]>
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 <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
fs/btrfs/zlib.c
This page took 0.053796 seconds and 4 git commands to generate.