summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorIyappan Subramanian <isubramanian@apm.com>2014-08-22 00:44:48 +0400
committerDavid S. Miller <davem@davemloft.net>2014-08-22 22:25:25 +0400
commitc10e4cafa2698dedb9b61bbf6d68f209e779cb19 (patch)
tree63f2a818e6c45b0f862ca6be9171e57694993b5d /tools/perf/util/scripting-engines/trace-event-python.c
parent2ba5af42a7b59ef01f9081234d8855140738defd (diff)
downloadlinux-c10e4cafa2698dedb9b61bbf6d68f209e779cb19.tar.xz
net: xgene: fix possible NULL dereference in xgene_enet_free_desc_rings()
A NULL pointer dereference is possible for the argument ring->buf_pool which is passed to xgene_enet_free_desc_ring(), as ring could be NULL. And now since NULL pointers are being checked for before the calls to xgene_enet_free_desc_ring(), might as well take advantage of them and not call the function if the argument would be NULL. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Iyappan Subramanian <isubramanian@apm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions