git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d97b07c
)
initramfs: add write error checks
author
David Engraf
<david.engraf@sysgo.com>
Fri, 8 Aug 2014 21:23:16 +0000
(14:23 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:26 +0000
(15:57 -0700)
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 <david.engraf@sysgo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/initramfs.c
patch
|
blob
|
history
diff --cc
init/initramfs.c
Simple merge