]> www.infradead.org Git - users/jedix/linux-maple.git/commit
enic: reset fetch index
authorParvi Kaustubhi <pkaustub@cisco.com>
Wed, 1 Nov 2017 15:44:46 +0000 (08:44 -0700)
committerJack Vogel <jack.vogel@oracle.com>
Wed, 7 Mar 2018 04:27:51 +0000 (20:27 -0800)
commit9bfaa38ec4a14b29a365b87e7156594f8a03df6d
tree104ac188aad503839a083703e4713faaa8113d6e
parentb8473af981ff98d21faccc4693a87a0487275b22
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>
Orabug: 27587345
(cherry picked from commit e6cdfcc581866625980a89391be4e6a8b379d0c5)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
drivers/net/ethernet/cisco/enic/vnic_rq.c