ipmr: off by one in __ipmr_fill_mroute()
commited0f160ad674407adb3aba499444f71c83289c63
authorDan Carpenter <error27@gmail.com>
Wed, 26 May 2010 07:38:56 +0000 (26 00:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 May 2010 07:38:56 +0000 (26 00:38 -0700)
tree39cff780164f55d6cda23018431ab553c4477f9e
parentd938a702e5ce8909ea68be97566150507bfea4df
ipmr: off by one in __ipmr_fill_mroute()

This fixes a smatch warning:
net/ipv4/ipmr.c +1917 __ipmr_fill_mroute(12) error: buffer overflow
'(mrt)->vif_table' 32 <= 32

The ipv6 version had the same issue.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c
net/ipv6/ip6mr.c