projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: add a limit parameter to sk_add_backlog()
[firefly-linux-kernel-4.4.55.git]
/
net
/
tipc
/
socket.c
diff --git
a/net/tipc/socket.c
b/net/tipc/socket.c
index c19fc4a228a8fb373e7aac4cda1d91261b3aecda..6d4991e8f6701845b3f81d8269505aadf0f8020c 100644
(file)
--- a/
net/tipc/socket.c
+++ b/
net/tipc/socket.c
@@
-1330,7
+1330,7
@@
static u32 dispatch(struct tipc_port *tport, struct sk_buff *buf)
if (!sock_owned_by_user(sk)) {
res = filter_rcv(sk, buf);
} else {
- if (sk_add_backlog(sk, buf))
+ if (sk_add_backlog(sk, buf
, sk->sk_rcvbuf
))
res = TIPC_ERR_OVERLOAD;
else
res = TIPC_OK;