commit | 25a54342fde903b6abc2680594cf3e4864686339 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Thu May 05 23:39:33 2016 +0100 |
committer | David S. Miller <davem@davemloft.net> | Sun May 08 23:32:59 2016 -0400 |
tree | 89be78b0f2e402ca1932aac7155ecea580f4560b | |
parent | 810810ffb2f6d46365d0790bbe77698a5534393a [diff] |
tools: bpf_jit_disasm: check for klogctl failure klogctl can fail and return -ve len, so check for this and return NULL to avoid passing a (size_t)-1 to malloc. Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Daniel Borkmann <daniel@iogearbox.net> Signed-off-by: David S. Miller <davem@davemloft.net>