]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
[DECNet] fib: Fix out of bound access of dn_fib_props[]
authorThomas Graf <tgraf@suug.ch>
Wed, 19 Mar 2008 21:14:34 +0000 (23:14 +0200)
committerAdrian Bunk <bunk@kernel.org>
Wed, 19 Mar 2008 21:14:34 +0000 (23:14 +0200)
commit363aae61f7124e3f4ecc19d150a69f701bc098fa
tree797ca28f73094615bd9b75ad146114c200b2fe9b
parent03b7f70b359bcf52ac57516d18fa0f956a5eacf7
[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>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
net/decnet/dn_fib.c