]> git.baikalelectronics.ru Git - kernel.git/commit
[TIPC]: Correct "off by 1" error in socket queue limit enforcement
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 15 Apr 2008 07:15:50 +0000 (00:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Apr 2008 07:15:50 +0000 (00:15 -0700)
commit8765627c87276ce65d601bbbf1b2fc3961afb251
treeaad3787178db838ac21b8e0dd05b472377cc5a74
parent9db8992b9d5d0627453d08c919b412fa7a0177ac
[TIPC]: Correct "off by 1" error in socket queue limit enforcement

This patch fixes a bug that allowed TIPC to queue 1 more message
than allowed by the socket receive queue threshold limits.  The
patch also improves the threshold code's logic and naming to help
prevent this sort of error from recurring in the future.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/socket.c