]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
tipc: Prevent access of non-existent field in short message header
authorAllan Stephens <allan.stephens@windriver.com>
Thu, 5 Jun 2008 00:36:58 +0000 (17:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jun 2008 00:36:58 +0000 (17:36 -0700)
commit9c396a7bfb4fe74e444be09069651280da520944
treee0cffbc27f334c928221aef12279045149173546
parent1265a02108c508b508112cdeac922aad03e0146a
tipc: Prevent access of non-existent field in short message header

This patch eliminates a case where TIPC's link code could try reading
a field that is not present in a short message header.  (The random
value obtained was not being used, but the read operation could result
in an invalid memory access exception in extremely rare circumstances.)

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