summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/ibm
diff options
context:
space:
mode:
authorAnirudh Venkataramanan <anirudh.venkataramanan@intel.com>2021-07-28 22:39:10 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2021-08-09 19:59:23 +0300
commit50ac7479846053ca8054be833c1594e64de496bb (patch)
treefe2e2380ded1bfe025f4323f1f6660b2946a93e4 /drivers/net/ethernet/ibm
parentd09c548dbf3b31cb07bba562e0f452edfa01efe3 (diff)
downloadlinux-50ac7479846053ca8054be833c1594e64de496bb.tar.xz
ice: Prevent probing virtual functions
The userspace utility "driverctl" can be used to change/override the system's default driver choices. This is useful in some situations (buggy driver, old driver missing a device ID, trying a workaround, etc.) where the user needs to load a different driver. However, this is also prone to user error, where a driver is mapped to a device it's not designed to drive. For example, if the ice driver is mapped to driver iavf devices, the ice driver crashes. Add a check to return an error if the ice driver is being used to probe a virtual function. Fixes: 837f08fdecbe ("ice: Add basic driver framework for Intel(R) E800 Series") Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Gurucharan G <gurucharanx.g@intel.com> Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/ibm')
0 files changed, 0 insertions, 0 deletions