summaryrefslogtreecommitdiffstats
path: root/drivers/soundwire
diff options
context:
space:
mode:
authorAlexander Duyck <alexanderduyck@fb.com>2021-03-08 21:41:56 +0100
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-04-13 20:03:36 +0200
commit31166efb1cee348eb6314e9c0095d84cbeb66b9d (patch)
tree5b17e3d0c8ff86f5a701b706471f7f1bd74c408b /drivers/soundwire
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf (diff)
downloadlinux-31166efb1cee348eb6314e9c0095d84cbeb66b9d.tar.xz
linux-31166efb1cee348eb6314e9c0095d84cbeb66b9d.zip
ixgbe: Fix NULL pointer dereference in ethtool loopback test
The ixgbe driver currently generates a NULL pointer dereference when performing the ethtool loopback test. This is due to the fact that there isn't a q_vector associated with the test ring when it is setup as interrupts are not normally added to the test rings. To address this I have added code that will check for a q_vector before returning a napi_id value. If a q_vector is not present it will return a value of 0. Fixes: b02e5a0ebb17 ("xsk: Propagate napi_id to XDP socket Rx path") Signed-off-by: Alexander Duyck <alexanderduyck@fb.com> Acked-by: Björn Töpel <bjorn.topel@intel.com> Tested-by: Dave Switzer <david.switzer@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/soundwire')
0 files changed, 0 insertions, 0 deletions