[DECNet] fib: Fix out of bound access of dn_fib_props[]
authorThomas Graf <tgraf@suug.ch>
Sun, 25 Mar 2007 03:33:27 +0000 (20:33 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 26 Mar 2007 01:48:04 +0000 (18:48 -0700)
commita979101106f549f4ed80d6dcbc35077be34d4346
tree1a8e9cf8cc6ccb6501233099c89701f2ccb0b36f
parenta0ee18b9b7d3847976c6fb315c06a34fb296de0e
[DECNet] fib: Fix out of bound access of dn_fib_props[]

Fixes a typo which caused fib_props[] to have the wrong size
and makes sure the value used to index the array which is
provided by userspace via netlink is checked to avoid out of
bound access.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/decnet/dn_fib.c