Skip to content
Commit cb4b102f authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

tipc: add a bounds check in link_recv_changeover_msg()



The bearer_id here comes from skb->data and it can be a number from 0 to
7.  The problem is that the ->links[] array has only 2 elements so I
have added a range check.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ac718b69
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