From: Sergey Popovich Date: Tue, 6 May 2014 15:23:08 +0000 (+0300) Subject: ipv4: fib_semantics: increment fib_info_cnt after fib_info allocation X-Git-Tag: omap-for-v3.16/fixes-against-rc1~146^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aeefa1ecfc799b0ea2c4979617f14cecd5cccbfd;p=pandora-kernel.git 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: Sergey Popovich Signed-off-by: David S. Miller --- Reading git-diff-tree failed