Message ID | 1493832958-12489-3-git-send-email-amit.pundir@linaro.org |
---|---|
State | New |
Headers | show |
Series | Security fixes picked from android security bulletins | expand |
diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index 872e53f15590..b2e183627f53 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1720,6 +1720,8 @@ static void regulator_ena_gpio_free(struct regulator_dev *rdev) gpiod_put(pin->gpiod); list_del(&pin->list); kfree(pin); + rdev->ena_pin = NULL; + return; } else { pin->request_count--; }