From: Iyappan Subramanian Date: Thu, 21 Aug 2014 20:44:48 +0000 (-0700) Subject: net: xgene: fix possible NULL dereference in xgene_enet_free_desc_rings() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~24^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c10e4cafa2698dedb9b61bbf6d68f209e779cb19;p=pandora-kernel.git 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 Signed-off-by: Iyappan Subramanian Signed-off-by: David S. Miller --- Reading git-diff-tree failed