]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 09:32:05 +0000 (11:32 +0200)
commit22922da7373c38c91dd36de993589b81a4129178
treea99118c204bb1d86c84087b71404cf8b3abc1bbd
parent2ee85ac1b29dbd2ebd2d8e5ac1dd5793235d516b
tipc: fix shift wrapping bug in map_get()

[ Upstream commit e2b224abd9bf45dcb55750479fc35970725a430b ]

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

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