OSDN Git Service

enic: reset fetch index
authorParvi Kaustubhi <pkaustub@cisco.com>
Wed, 1 Nov 2017 15:44:46 +0000 (08:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 05:17:11 +0000 (14:17 +0900)
commite6cdfcc581866625980a89391be4e6a8b379d0c5
treeb4a7374b46d9118e4db5e448cfd5856dc33e6c66
parent59c1cecce340d173234fd130c0647693a072009b
enic: reset fetch index

Since we are allowing rx ring size modification, reset fetch index
everytime. Otherwise it could have a stale value that can lead to a null
pointer dereference.

Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com>
Signed-off-by: Parvi Kaustubhi <pkaustub@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/vnic_rq.c