]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix message importance range check
authorErik Hugne <erik.hugne@ericsson.com>
Fri, 15 Aug 2014 14:44:35 +0000 (16:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Aug 2014 03:17:34 +0000 (20:17 -0700)
commit2d321117af01ca901bc8e7a7ba9d560a6acf10cb
tree9338c8e950a138f41d5bc1c2fa9f5a669e88050f
parent83a7bf972a9e192c293b765ac6954828dd777be3
tipc: fix message importance range check

Commit 99dd8e6bb75a ("tipc: eliminate
redundant locking") introduced a bug by removing the sanity check
for message importance, allowing programs to assign any value to
the msg_user field. This will mess up the packet reception logic
and may cause random link resets.

Signed-off-by: Erik Hugne <erik.hugne@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/port.h
net/tipc/socket.c