Re: [PATCH] net: team: fix memory leak in __team_options_register

2020-10-04 Thread David Miller
From: Anant Thazhemadam Date: Mon, 5 Oct 2020 02:25:36 +0530 > The variable "i" isn't initialized back correctly after the first loop > under the label inst_rollback gets executed. > > The value of "i" is assigned to be option_count - 1, and the ensuing > loop (under alloc_rollback) begins by

[PATCH] net: team: fix memory leak in __team_options_register

2020-10-04 Thread Anant Thazhemadam
The variable "i" isn't initialized back correctly after the first loop under the label inst_rollback gets executed. The value of "i" is assigned to be option_count - 1, and the ensuing loop (under alloc_rollback) begins by initializing i--. Thus, the value of i when the loop begins execution wil