X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Fcpu.c;h=cb5103413bd8df5056b3eda682a8d93b08656dd8;hb=adc311034c356e884d180df25deb046cef3e8c75;hp=9ae6fbe5b5cf5d70d5869e8efb00c61f47cf66d4;hpb=0fcc3ab23d7395f58e8ab0834e7913e2e4314a83;p=karo-tx-linux.git diff --git a/kernel/cpu.c b/kernel/cpu.c index 9ae6fbe5b5cf..cb5103413bd8 100644 --- a/kernel/cpu.c +++ b/kernel/cpu.c @@ -1658,13 +1658,13 @@ static ssize_t write_cpuhp_target(struct device *dev, ret = !sp->name || sp->cant_stop ? -EINVAL : 0; mutex_unlock(&cpuhp_state_mutex); if (ret) - return ret; + goto out; if (st->state < target) ret = do_cpu_up(dev->id, target); else ret = do_cpu_down(dev->id, target); - +out: unlock_device_hotplug(); return ret ? ret : count; }