diff options
| author | Iyappan Subramanian <[email protected]> | 2014-08-21 20:44:48 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2014-08-22 18:25:25 +0000 |
| commit | c10e4cafa2698dedb9b61bbf6d68f209e779cb19 (patch) | |
| tree | 63f2a818e6c45b0f862ca6be9171e57694993b5d /lib/assoc_array.c | |
| parent | openvswitch: fix panic with multiple vlan headers (diff) | |
| download | kernel-c10e4cafa2698dedb9b61bbf6d68f209e779cb19.tar.gz kernel-c10e4cafa2698dedb9b61bbf6d68f209e779cb19.zip | |
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 <[email protected]>
Signed-off-by: Iyappan Subramanian <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions
