diff options
| author | David Engraf <[email protected]> | 2014-08-08 14:23:16 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2014-08-08 15:57:26 -0700 |
| commit | 9687fd9101afaa1c4b1de7ffd2f9d7e53f45b29f (patch) | |
| tree | 97b93d548e3f0c288a3191038f8181ec8bf07bf7 /tools/perf/scripts/python/bin | |
| parent | d97b07c54f34e88352ebe676beb798c8f59ac588 (diff) | |
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions