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)
committerPhillip Lougher <phillip@squashfs.org.uk>
Sun, 24 Nov 2013 01:02:50 +0000 (01:02 +0000)
commit6d565409503f4e1f74ac30de14e8c91a2b826cd8
tree733a81c4b0b7cdcbdda144a0a4e0909469b75116
parented4f381ec15e5f11724cdbc68cffd2c22d1eaebd
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