Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Staging: android: timed_gpio: Fix resource leak in timed_gpio_probe e…
…rror paths If gpio_request fails, we need to free all allocated resources. Current code uses wrong array index to access gpio_data array. So current code actually frees gpio_data[i].gpio by j times. This patch moves the error handling code to err_out and thus improves readability. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
- Loading branch information