diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c index df2af3a11351aaf642b2b2cacb99509c349513c7..47a455cfe04fb344409a1f48ac52a7c9450edad3 100644 --- a/drivers/regulator/core.c +++ b/drivers/regulator/core.c @@ -1713,6 +1713,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--; }