mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
[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>
This commit is contained in:
parent
06d82c9191
commit
37695420a2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue