diff options
author | Josh Boyer <jwboyer@redhat.com> | 2011-10-25 13:52:02 -0400 |
---|---|---|
committer | Josh Boyer <jwboyer@redhat.com> | 2011-10-25 13:52:02 -0400 |
commit | 78ef95d1929b11d2bf2fd082a4106e7597415f30 (patch) | |
tree | 7adfda48043ba1f98b50c6e7808beeb2bf0f79fa /benet-remove-bogus-unlikely-on-vlan-check.patch | |
parent | 158212310892f03adfb47f54ae3464d5c5cfe943 (diff) | |
download | kernel-78ef95d1929b11d2bf2fd082a4106e7597415f30.tar.gz kernel-78ef95d1929b11d2bf2fd082a4106e7597415f30.tar.xz kernel-78ef95d1929b11d2bf2fd082a4106e7597415f30.zip |
CVE-2011-3347: be2net: promiscuous mode and non-member VLAN packets DoS
(rhbz 748691)
Diffstat (limited to 'benet-remove-bogus-unlikely-on-vlan-check.patch')
-rw-r--r-- | benet-remove-bogus-unlikely-on-vlan-check.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/benet-remove-bogus-unlikely-on-vlan-check.patch b/benet-remove-bogus-unlikely-on-vlan-check.patch new file mode 100644 index 000000000..08c00817e --- /dev/null +++ b/benet-remove-bogus-unlikely-on-vlan-check.patch @@ -0,0 +1,39 @@ +From 82f15998fafe683add83f7a11b2e25f919b3cd2d Mon Sep 17 00:00:00 2001 +From: Jiri Pirko <jpirko@redhat.com> +Date: Tue, 25 Oct 2011 13:47:16 -0400 +Subject: [PATCH] benet: remove bogus "unlikely" on vlan check + +Use of unlikely in this place is wrong. Remove it. + +Signed-off-by: Jiri Pirko <jpirko@redhat.com> +Signed-off-by: David S. Miller <davem@davemloft.net> +Backported-by: Josh Boyer <jwboyer@redhat.com> +--- + drivers/net/benet/be_main.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c +index c411bb1..6df0c7e 100644 +--- a/drivers/net/benet/be_main.c ++++ b/drivers/net/benet/be_main.c +@@ -1192,7 +1192,7 @@ static void be_rx_compl_process(struct be_adapter *adapter, + skb->rxhash = rxcp->rss_hash; + + +- if (unlikely(rxcp->vlanf)) ++ if (rxcp->vlanf) + __vlan_hwaccel_put_tag(skb, rxcp->vlan_tag); + + netif_receive_skb(skb); +@@ -1249,7 +1249,7 @@ static void be_rx_compl_process_gro(struct be_adapter *adapter, + if (adapter->netdev->features & NETIF_F_RXHASH) + skb->rxhash = rxcp->rss_hash; + +- if (unlikely(rxcp->vlanf)) ++ if (rxcp->vlanf) + __vlan_hwaccel_put_tag(skb, rxcp->vlan_tag); + + napi_gro_frags(&eq_obj->napi); +-- +1.7.6.4 + |