summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhu Yi <yi.zhu@intel.com>2010-03-04 19:01:43 +0100
committerDavid S. Miller <davem@davemloft.net>2010-03-05 22:34:01 +0100
commit79545b681961d7001c1f4c3eb9ffb87bed4485db (patch)
tree94acced858f6f0aa64bc71aa91746760a07139a0
parentudp: use limited socket backlog (diff)
downloadlinux-79545b681961d7001c1f4c3eb9ffb87bed4485db.tar.xz
linux-79545b681961d7001c1f4c3eb9ffb87bed4485db.zip
llc: use limited socket backlog
Make llc adapt to the limited socket backlog change. Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Acked-by: Eric Dumazet <eric.dumazet@gmail.com> Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/llc/llc_conn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/llc/llc_conn.c b/net/llc/llc_conn.c
index a8dde9b010da..c0539ffdb272 100644
--- a/net/llc/llc_conn.c
+++ b/net/llc/llc_conn.c
@@ -827,7 +827,8 @@ void llc_conn_handler(struct llc_sap *sap, struct sk_buff *skb)
else {
dprintk("%s: adding to backlog...\n", __func__);
llc_set_backlog_type(skb, LLC_PACKET);
- sk_add_backlog(sk, skb);
+ if (sk_add_backlog_limited(sk, skb))
+ goto drop_unlock;
}
out:
bh_unlock_sock(sk);