From: Allan Stephens Date: Thu, 5 Jun 2008 00:29:39 +0000 (-0700) Subject: tipc: Fix minor bugs in link session number handling X-Git-Tag: v2.6.27-rc1~969^2~363 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a686e6859e976712e28f6af927cd52a6a3bb372a;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed