From: David Engraf Date: Fri, 8 Aug 2014 21:23:16 +0000 (-0700) Subject: initramfs: add write error checks X-Git-Tag: omap-for-v3.17/fixes-against-rc2~116^2~84 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9687fd9101afaa1c4b1de7ffd2f9d7e53f45b29f;p=pandora-kernel.git initramfs: add write error checks On a system with low memory extracting the initramfs may fail. If this happens the user gets "Failed to execute /init" instead of an initramfs error. Check return value of sys_write and call error() when the write was incomplete or failed. Signed-off-by: David Engraf Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed