Skip to content

Commit

Permalink
[TIPC]: Use correct bitmask when setting version
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Allan Stephens authored and David S. Miller committed Mar 6, 2008
1 parent 06d82c9 commit 3769542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tipc/msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3769542

Please sign in to comment.