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
chips
devices
lpddr
maps
nand
onenand
spi-nor
tests
ubi
Kconfig -rw-r--r-- 11.1 KB
Makefile -rw-r--r-- 1.1 KB
afs.c -rw-r--r-- 6.3 KB
ar7part.c -rw-r--r-- 4.2 KB
bcm47xxpart.c -rw-r--r-- 7.1 KB
bcm63xxpart.c -rw-r--r-- 6.5 KB
cmdlinepart.c -rw-r--r-- 10.9 KB
ftl.c -rw-r--r-- 31.4 KB
inftlcore.c -rw-r--r-- 24.5 KB
inftlmount.c -rw-r--r-- 22.4 KB
mtd_blkdevs.c -rw-r--r-- 13.2 KB
mtdblock.c -rw-r--r-- 9.9 KB
mtdblock_ro.c -rw-r--r-- 2.5 KB
mtdchar.c -rw-r--r-- 26.7 KB
mtdconcat.c -rw-r--r-- 23.0 KB
mtdcore.c -rw-r--r-- 33.5 KB
mtdcore.h -rw-r--r-- 790 bytes
mtdoops.c -rw-r--r-- 11.8 KB
mtdpart.c -rw-r--r-- 21.4 KB
mtdsuper.c -rw-r--r-- 5.5 KB
mtdswap.c -rw-r--r-- 35.6 KB
nftlcore.c -rw-r--r-- 23.0 KB
nftlmount.c -rw-r--r-- 26.0 KB
ofpart.c -rw-r--r-- 4.4 KB
redboot.c -rw-r--r-- 8.4 KB
rfd_ftl.c -rw-r--r-- 18.3 KB
sm_ftl.c -rw-r--r-- 30.2 KB
sm_ftl.h -rw-r--r-- 2.5 KB
ssfdc.c -rw-r--r-- 11.3 KB

back to top