]> git.baikalelectronics.ru Git - kernel.git/commit
initramfs: add missing decompressor error check
authorPhillip Lougher <phillip@lougher.demon.co.uk>
Mon, 14 Dec 2009 21:45:19 +0000 (21:45 +0000)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 15 Dec 2009 22:04:24 +0000 (14:04 -0800)
commit6511de38dcdb64e02ff0be4478b8bd8d71ec7b91
tree4b013a21d326ca474a4d785bb7586f88e2832ee9
parenta13be633cd1136122d33affde593fd2c46ff0081
initramfs: add missing decompressor error check

The decompressors return error by calling a supplied error function, and/or
by returning an error return value.  The initramfs code, however, fails to
check the exit code returned by the decompressor, and only checks the error
status set by calling the error function.

This patch adds a return code check and calls the error function.

Signed-off-by: Phillip Lougher <phillip@lougher.demon.co.uk>
LKML-Reference: <4b26b1ef.0+ZWxT6886olqcSc%phillip@lougher.demon.co.uk>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
init/initramfs.c