BNX2: free temp_stats_blk on error path
authorwangweidong <wangweidong1@huawei.com>
Tue, 13 Oct 2015 02:05:19 +0000 (10:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Oct 2015 02:33:46 +0000 (19:33 -0700)
commit3703ebe4035044dea3749fcdd1c0849937147959
tree6d67f8fb6feafaa9443287d7c5faa8679e336185
parent76973dd79fd52f187ba3df018bca65792a3d942d
BNX2: free temp_stats_blk on error path

In bnx2_init_board, missing free temp_stats_blk on error path when
some operations do failed. Just add the 'kfree' operation.

Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c