diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-06-04 17:29:39 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-04 17:29:39 -0700 |
commit | a686e6859e976712e28f6af927cd52a6a3bb372a (patch) | |
tree | 2d1f1092416394e8dba4ffc38eec03c9aedd4ebf /net/tipc/discover.c | |
parent | e0d4e3d0d72cfae7b7eac14e39e12dfc6b406313 (diff) | |
download | blackbird-op-linux-a686e6859e976712e28f6af927cd52a6a3bb372a.tar.gz blackbird-op-linux-a686e6859e976712e28f6af927cd52a6a3bb372a.zip |
tipc: Fix minor bugs in link session number handling
This patch introduces a new, out-of-range value to indicate that
a link endpoint does not have an existing session established
with its peer, eliminating the risk that the previously used
"invalid session number" value (i.e. zero) might eventually be
assigned as a valid session number and cause incorrect link
behavior.
The patch also introduces explicit bit masking when assigning a
new link session number to ensure it does not exceed 16 bits.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/discover.c')
0 files changed, 0 insertions, 0 deletions