Squashfs: fix failure to unlock pages on decompress error
authorPhillip Lougher <phillip@squashfs.org.uk>
Sun, 24 Nov 2013 00:40:49 +0000 (00:40 +0000)
committerMohamad Ayyash <mkayyash@google.com>
Wed, 4 Mar 2015 19:23:02 +0000 (11:23 -0800)
commit3a2109763d60cf4d0d92f7ae3c6e2c268fb7de04
tree5d43a141ef739435509332aa557e9469761398ab
parent6a1e8fd1e4dc7c53d67f4091bea0cfd2139901d0
Squashfs: fix failure to unlock pages on decompress error

Direct decompression into the page cache.  If we fall back
to using an intermediate buffer (because we cannot grab all the
page cache pages) and we get a decompress fail, we forgot to
release the pages.

Reported-by: Roman Peniaev <r.peniaev@gmail.com>
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
fs/squashfs/file_direct.c