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: v3.2.60~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2157fbf160aa15f1f97fdb14261a3b1d3796b0fb;p=pandora-kernel.git 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 Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed