Skip to content
Commit 3013c498 authored by Pavel Belous's avatar Pavel Belous Committed by David S. Miller
Browse files

aquantia: Fix "ethtool -S" crash when adapter down.

This patch fixes the crash that happens when driver tries to collect statistics
from already released "aq_vec" object.
If adapter is in "down" state we still allow user to see statistics from HW.

V2: fixed braces around "aq_vec_free".

Fixes: 97bde5c4

 ("net: ethernet: aquantia: Support for NIC-specific code")
Signed-off-by: default avatarPavel Belous <pavel.belous@aquantia.com>
Tested-by: default avatarDavid Arcari <darcari@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2c041afc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment