From: Allan Stephens Date: Thu, 6 Mar 2008 23:07:42 +0000 (-0800) Subject: [TIPC]: Use correct bitmask when setting version X-Git-Tag: v2.6.26-rc1~1138^2~464 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37695420a233aa8aef40c68cb338ad09e0241ec3;p=linux-2.6 [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 Signed-off-by: David S. Miller --- diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 5cf76a4f28..88a2ee03bb 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h @@ -85,7 +85,7 @@ static inline u32 msg_version(struct tipc_msg *m) static inline void msg_set_version(struct tipc_msg *m) { - msg_set_bits(m, 0, 29, 0xf, TIPC_VERSION); + msg_set_bits(m, 0, 29, 7, TIPC_VERSION); } static inline u32 msg_user(struct tipc_msg *m)