diff options
author | Sergey Popovich <popovich_sergei@mail.ru> | 2014-05-06 18:23:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-30 21:52:16 -0700 |
commit | 6e020d8ab8dad5c4ebb5317898d05d437a6f5c49 (patch) | |
tree | ca925dbf6b6ba540c19dce3251dbf71965e2c3a9 /lib/mpi/mpiutil.c | |
parent | bbdd224c0ad28a77161aeb8c45d34fe0928ef997 (diff) |
ipv4: fib_semantics: increment fib_info_cnt after fib_info allocation
[ Upstream commit aeefa1ecfc799b0ea2c4979617f14cecd5cccbfd ]
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: Sergey Popovich <popovich_sergei@mail.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions