diff options
author | Matej Habrnal <mhabrnal@redhat.com> | 2016-09-26 17:28:58 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2016-09-26 11:28:58 -0400 |
commit | a5ca3649d34c5649ca04fc81000a80e476a81a64 (patch) | |
tree | bcb1f68b361eb671d116b15ab79100363367288e /coccinelle | |
parent | d23a0044a3ba9ebff5e4e304152fd24ecf113524 (diff) |
coredump: initialize coredump_size in submit_coredump() (#4219)
If ulimit is smaller than page_size(), function save_external_coredump()
returns -EBADSLT and this causes skipping whole core dumping part in
submit_coredump(). Initializing coredump_size to UINT64_MAX prevents
evaluating a condition with uninitialized varialbe which leads to
calling allocate_journal_field() with coredump_fd = -1 which causes
aborting.
Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
Diffstat (limited to 'coccinelle')
0 files changed, 0 insertions, 0 deletions