diff options
author | Allan Stephens <allan.stephens@windriver.com> | 2008-03-06 18:07:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-06 18:07:42 -0500 |
commit | 37695420a233aa8aef40c68cb338ad09e0241ec3 (patch) | |
tree | fd52baf85bc30e37a15e195d2cedc105b4d117fd | |
parent | 06d82c9191261942ce7873ce4a8735fd2a15e662 (diff) |
[TIPC]: Use correct bitmask when setting version
This patch ensures that the 3-bit version field of the TIPC
message header is masked correctly when written into a message.
Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/tipc/msg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 5cf76a4f28e4..88a2ee03bb2a 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h | |||
@@ -85,7 +85,7 @@ static inline u32 msg_version(struct tipc_msg *m) | |||
85 | 85 | ||
86 | static inline void msg_set_version(struct tipc_msg *m) | 86 | static inline void msg_set_version(struct tipc_msg *m) |
87 | { | 87 | { |
88 | msg_set_bits(m, 0, 29, 0xf, TIPC_VERSION); | 88 | msg_set_bits(m, 0, 29, 7, TIPC_VERSION); |
89 | } | 89 | } |
90 | 90 | ||
91 | static inline u32 msg_user(struct tipc_msg *m) | 91 | static inline u32 msg_user(struct tipc_msg *m) |