]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix shift wrapping bug in map_get()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 31 Aug 2022 14:47:56 +0000 (17:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Sep 2022 11:26:29 +0000 (12:26 +0100)
commitadabdad4b24a67df2698d7fc2cacddd602bb94b6
tree95baef52756e8263f819eb01816387a4f22ad32e
parent2ef1492a6e0b552e59492afd11d90a8d1682e212
tipc: fix shift wrapping bug in map_get()

There is a shift wrapping bug in this code so anything thing above
31 will return false.

Fixes: edaafc288dc9 ("tipc: add neighbor monitoring framework")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/monitor.c