diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-05-06 10:28:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-06 22:16:52 +0200 |
commit | cb4b102f0ab29fcbaf945c6b1f85ef006cdb8edc (patch) | |
tree | cedc736240969480891ff4bb5de7b32d8b448e42 /net/tipc/bearer.h | |
parent | net/usb: new driver for RTL8152 (diff) | |
download | linux-cb4b102f0ab29fcbaf945c6b1f85ef006cdb8edc.tar.xz linux-cb4b102f0ab29fcbaf945c6b1f85ef006cdb8edc.zip |
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: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/bearer.h')
0 files changed, 0 insertions, 0 deletions