Skip to content
Commit aeefa1ec authored by Sergey Popovich's avatar Sergey Popovich Committed by David S. Miller
Browse files

ipv4: fib_semantics: increment fib_info_cnt after fib_info allocation



Increment fib_info_cnt in fib_create_info() right after successfuly
alllocating fib_info structure, overwise fib_metrics allocation failure
leads to fib_info_cnt incorrectly decremented in free_fib_info(), called
on error path from fib_create_info().

Signed-off-by: default avatarSergey Popovich <popovich_sergei@mail.ru>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7fc1c5f3
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