diff --git a/drivers/base/power/main.c b/drivers/base/power/main.c index 9f098a82cf04b061edb203fff718ef0ca70e6328..97db7552e90a94ad0a3ba399cc4e2d229b62365c 100644 --- a/drivers/base/power/main.c +++ b/drivers/base/power/main.c @@ -1277,6 +1277,9 @@ static int device_prepare(struct device *dev, pm_message_t state) device_unlock(dev); + if (error) + pm_runtime_put(dev); + return error; }