Revision c10e4cafa2698dedb9b61bbf6d68f209e779cb19 authored by Iyappan Subramanian on 21 August 2014, 20:44:48 UTC, committed by David S. Miller on 22 August 2014, 18:25:25 UTC
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>
1 parent 2ba5af4
History
File Mode Size
Kconfig -rw-r--r-- 501 bytes
Makefile -rw-r--r-- 274 bytes
compr.c -rw-r--r-- 1.8 KB
dev_bdev.c -rw-r--r-- 7.8 KB
dev_mtd.c -rw-r--r-- 6.6 KB
dir.c -rw-r--r-- 20.3 KB
file.c -rw-r--r-- 7.2 KB
gc.c -rw-r--r-- 20.2 KB
inode.c -rw-r--r-- 11.3 KB
journal.c -rw-r--r-- 23.7 KB
logfs.h -rw-r--r-- 23.8 KB
logfs_abi.h -rw-r--r-- 16.8 KB
readwrite.c -rw-r--r-- 55.8 KB
segment.c -rw-r--r-- 24.3 KB
super.c -rw-r--r-- 16.3 KB

back to top