aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorThomas Chou <[email protected]>2010-05-23 16:44:02 +0000
committerDavid S. Miller <[email protected]>2010-05-23 23:11:09 -0700
commitee02a4ef40f2e049c80f9cc04e21a9b48288b6ff (patch)
tree26a6accadf8b370425b7c7c5e15351375a1fbf10 /tools/perf/util/trace-event-scripting.c
parent253683bbfb6bc5864417c8c35cb6ef13b5e259e6 (diff)
ethoc: fix null dereference in ethoc_probe
Dan reported the patch 0baa080c75c: "ethoc: use system memory as buffer" introduced a potential null dereference. 1060 free: 1061 if (priv->dma_alloc) ^^^^^^^^^^^^^^^ priv can be null here. He also suggested that the error handling is not complete. This patch fixes the null priv issue and improves resources releasing in ethoc_probe() and ethoc_remove(). Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Thomas Chou <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions