summaryrefslogtreecommitdiff
path: root/bpf_lexer.l
AgeCommit message (Expand)AuthorFilesLines
2013-09-06bpfc: add gnu as style %-register prefixDaniel Borkmann1-0/+1
2013-05-23bpfc: allow bpf programs to be passed to cppDaniel Borkmann1-0/+1
2013-03-19bpfc: filter: add poff ancillary operationDaniel Borkmann1-0/+1
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+126
b8ce0a15 (diff)
IB/core: fix null pointer deref and mem leak in error handling
The current error handling in setup_hw_stats has a couple of issues. It is possible to generate a null pointer deference on the kfree of hsag->attrs[i] because two of the early error exit paths jump to the kfree when hsags NULL and not allocated. Fix this by moving the kfree on stats and jumping to that, avoiding the hsag freeing. Secondly, there is a memory leak of stats if the hsag allocation fails; instead of returning, jump to the kfree on stats. Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat