]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit1819b83718dc3fe0aea0a2c3cd48d617e2003606
treeaad3787178db838ac21b8e0dd05b472377cc5a74
parent7a8036c2b93c8301afce8f75ac099c347bad569d
[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