]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff9fd70a3d5266fd761032526ae143eca06f133e
tree6d67f8fb6feafaa9443287d7c5faa8679e336185
parent43004e3ea813a55e96f97fa6566052fad0f81a51
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