aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cavium/liquidio
diff options
context:
space:
mode:
authorClaudiu Beznea <claudiu.beznea@microchip.com>2021-04-14 14:20:29 +0300
committerDavid S. Miller <davem@davemloft.net>2021-04-14 13:57:17 -0700
commita714e27ea8bdee2b238748029d31472d0a65b611 (patch)
tree34dd498261b52591abdfc91a15380607d2fb6a56 /drivers/net/ethernet/cavium/liquidio
parentvrf: fix a comment about loopback device (diff)
downloadlinux-dev-a714e27ea8bdee2b238748029d31472d0a65b611.tar.xz
linux-dev-a714e27ea8bdee2b238748029d31472d0a65b611.zip
net: macb: fix the restore of cmp registers
Commit a14d273ba159 ("net: macb: restore cmp registers on resume path") introduces the restore of CMP registers on resume path. In case the IP doesn't support type 2 screeners (zero on DCFG8 register) the struct macb::rx_fs_list::list is not initialized and thus the list_for_each_entry(item, &bp->rx_fs_list.list, list) loop introduced in commit a14d273ba159 ("net: macb: restore cmp registers on resume path") will access an uninitialized list leading to crash. Thus, initialize the struct macb::rx_fs_list::list without taking into account if the IP supports type 2 screeners or not. Fixes: a14d273ba159 ("net: macb: restore cmp registers on resume path") Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cavium/liquidio')
0 files changed, 0 insertions, 0 deletions