Iyappan Subramanian
c10e4cafa2
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>
2014-08-22 11:25:25 -07:00
..
2014-08-14 18:13:46 -06:00
2014-08-06 21:14:42 -07:00
2014-08-13 18:27:40 -06:00
2014-08-06 21:14:42 -07:00
2014-07-31 13:45:32 -04:00
2014-08-14 18:10:33 -06:00
2014-07-31 01:07:28 +02:00
2014-08-08 11:34:32 -07:00
2014-08-10 21:31:04 -07:00
2014-08-08 11:14:29 -07:00
2014-08-08 11:14:29 -07:00
2014-07-23 10:18:07 -07:00
2014-08-14 18:13:46 -06:00
2014-08-14 18:13:46 -06:00
2014-08-14 18:10:33 -06:00
2014-07-23 00:51:30 +02:00
2014-08-11 07:14:01 -07:00
2014-08-14 09:53:39 -06:00
2014-07-23 10:22:35 +09:00
2014-08-06 09:38:14 -07:00
2014-08-08 15:57:33 -07:00
2014-08-08 18:00:35 -07:00
2014-08-12 12:15:14 -06:00
2014-08-08 17:39:48 -07:00
2014-08-06 20:06:14 -07:00
2014-08-04 17:32:24 -07:00
2014-08-14 09:55:13 -06:00
2014-07-29 11:46:28 +03:00
2014-08-09 09:15:07 -07:00
2014-08-05 21:16:46 -07:00
2014-08-04 18:36:12 -07:00
2014-08-14 18:10:33 -06:00
2014-08-08 17:39:48 -07:00
2014-08-08 11:00:26 -07:00
2014-08-08 11:14:29 -07:00
2014-08-02 15:03:58 -07:00
2014-08-08 11:34:32 -07:00
2014-08-06 18:01:19 -07:00
2014-08-07 17:23:16 -07:00
2014-07-29 01:57:25 -07:00
2014-08-14 09:17:56 -06:00
2014-08-08 15:57:28 -07:00
2014-07-29 19:26:30 -05:00
2014-07-25 17:16:58 -04:00
2014-08-14 10:56:15 -06:00
2014-08-08 11:34:32 -07:00
2014-08-14 18:10:33 -06:00
2014-08-13 17:42:11 -06:00
2014-08-22 11:25:25 -07:00
2014-07-23 01:14:41 +02:00
2014-08-14 09:53:39 -06:00
2014-08-08 15:57:25 -07:00
2014-08-14 18:10:33 -06:00
2014-08-07 08:50:34 -07:00
2014-08-08 11:34:32 -07:00
2014-08-08 11:34:32 -07:00
2014-08-12 12:15:14 -06:00
2014-07-30 00:23:09 +02:00
2014-08-08 11:14:29 -07:00
2014-08-12 12:15:14 -06:00
2014-08-08 18:06:29 -07:00
2014-08-12 12:15:14 -06:00
2014-08-07 17:17:39 -07:00
2014-08-08 15:57:47 -07:00
2014-08-07 08:41:00 -07:00
2014-08-05 18:57:18 -07:00
2014-08-14 18:10:33 -06:00
2014-08-08 11:00:26 -07:00
2014-08-08 15:57:47 -07:00
2014-08-06 20:10:32 -07:00
2014-07-22 10:13:00 +08:00
2014-08-14 09:53:39 -06:00
2014-08-06 21:03:53 -07:00
2014-08-01 15:48:08 -07:00
2014-08-08 10:39:16 -06:00
2014-08-12 12:15:14 -06:00
2014-07-27 21:07:15 +09:30
2014-08-08 15:57:30 -07:00
2014-08-07 08:47:00 -07:00
2014-08-12 12:15:14 -06:00
2014-08-04 17:32:24 -07:00
2014-08-04 18:34:04 -07:00