Home
last modified time | relevance | path

Searched hist:d0186842ec5f456af531c66ee1ca64a8682695e6 (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/net/8021q/
H A Dvlan.hdiff d0186842ec5f456af531c66ee1ca64a8682695e6 Thu Sep 24 19:27:44 CDT 2020 Florian Fainelli <f.fainelli@gmail.com> 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 <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
H A Dvlan.cdiff d0186842ec5f456af531c66ee1ca64a8682695e6 Thu Sep 24 19:27:44 CDT 2020 Florian Fainelli <f.fainelli@gmail.com> 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 <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>