Commit f434baf4 authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds

[PATCH] fix generic_fls64()

Noticed by Rune Torgersen.

Fix generic_fls64().  tcp_cubic is using fls64().
Signed-off-by: default avatarAkinobu Mita <mita@miraclelinux.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c9ab8b68
...@@ -81,7 +81,7 @@ static inline int generic_fls64(__u64 x) ...@@ -81,7 +81,7 @@ static inline int generic_fls64(__u64 x)
{ {
__u32 h = x >> 32; __u32 h = x >> 32;
if (h) if (h)
return fls(x) + 32; return fls(h) + 32;
return fls(x); return fls(x);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment