projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06d82c9
)
[TIPC]: Use correct bitmask when setting version
author
Allan Stephens
<allan.stephens@windriver.com>
Thu, 6 Mar 2008 23:07:42 +0000
(15:07 -0800)
committer
David S. Miller
<davem@davemloft.net>
Thu, 6 Mar 2008 23:07:42 +0000
(15:07 -0800)
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>
net/tipc/msg.h
patch
|
blob
|
blame
|
history
diff --git
a/net/tipc/msg.h
b/net/tipc/msg.h
index 5cf76a4f28e43903bb68abd25afc8d893df2ef6d..88a2ee03bb2a33bac948f132faaeb8e3ef36454b 100644
(file)
--- 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)