summaryrefslogtreecommitdiffstats
path: root/ipc/shm.c
diff options
context:
space:
mode:
authorDavid Engraf2014-08-08 23:23:16 +0200
committerLinus Torvalds2014-08-09 00:57:26 +0200
commit9687fd9101afaa1c4b1de7ffd2f9d7e53f45b29f (patch)
tree97b93d548e3f0c288a3191038f8181ec8bf07bf7 /ipc/shm.c
parentinitramfs: support initramfs that is bigger than 2GiB (diff)
downloadkernel-qcow2-linux-9687fd9101afaa1c4b1de7ffd2f9d7e53f45b29f.tar.gz
kernel-qcow2-linux-9687fd9101afaa1c4b1de7ffd2f9d7e53f45b29f.tar.xz
kernel-qcow2-linux-9687fd9101afaa1c4b1de7ffd2f9d7e53f45b29f.zip
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 <david.engraf@sysgo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/shm.c')
0 files changed, 0 insertions, 0 deletions