diff options
| author | Florian Fainelli <[email protected]> | 2020-09-25 00:27:44 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-09-25 21:12:18 +0000 |
| commit | d0186842ec5f456af531c66ee1ca64a8682695e6 (patch) | |
| tree | 1128c50e3baff5b3b8016e4d6d8bf8355cb73bf2 /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | Merge tag 'wireless-drivers-next-2020-09-25' of git://git.kernel.org/pub/scm/... (diff) | |
| download | kernel-d0186842ec5f456af531c66ee1ca64a8682695e6.tar.gz kernel-d0186842ec5f456af531c66ee1ca64a8682695e6.zip | |
net: vlan: Avoid using BUG() in vlan_proto_idx()
While we should always make sure that we specify a valid VLAN protocol
to vlan_proto_idx(), killing the machine when an invalid value is
specified is too harsh and not helpful for debugging. All callers are
capable of dealing with an error returned by vlan_proto_idx() so check
the index value and propagate it accordingly.
Signed-off-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions
