Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1487481
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [tip:smp/hotplug] cpufreq: Fix up conversion to hotplug state machine |
| Date | 2016-09-20 18:10 +0200 |
| Message-ID | <sjvMm-5fH-45@gated-at.bofh.it> (permalink) |
| References | <sjuGC-4nM-25@gated-at.bofh.it> <sjuQi-4Gm-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Sep 20, 2016 at 08:07:08AM -0700, tip-bot for Sebastian Andrzej Siewior wrote:
> Commit-ID: 5372e054a1928fe704cf0a5e2e139645a777b50a
> Gitweb: http://git.kernel.org/tip/5372e054a1928fe704cf0a5e2e139645a777b50a
> Author: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> AuthorDate: Tue, 20 Sep 2016 16:56:28 +0200
> Committer: Thomas Gleixner <tglx@linutronix.de>
> CommitDate: Tue, 20 Sep 2016 16:59:21 +0200
>
> cpufreq: Fix up conversion to hotplug state machine
>
> The function cpufreq_register_driver() returns zero on success and since
> commit 27622b061eb4 ("cpufreq: Convert to hotplug state machine")
> erroneously a positive number. Due to the "if (x) assume_error" construct
> all callers assumed an error and as a consequence the cpu freq kworker
> crashes with a NULL pointer dereference.
>
> Reset the return value back to zero in the success case.
>
> Fixes: 27622b061eb4 ("cpufreq: Convert to hotplug state machine")
> Reported-by: Borislav Petkov <bp@alien8.de>
-and-tested-by: me.
Thanks!
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[tip:smp/hotplug] cpufreq: Convert to hotplug state machine tip-bot for Sebastian Andrzej Siewior <tipbot@zytor.com> - 2016-09-19 22:00 +0200
[PATCH] cpufreq: fix up conversion to hotplug state machine Sebastian Andrzej Siewior <bigeasy@linutronix.de> - 2016-09-20 17:00 +0200
[tip:smp/hotplug] cpufreq: Fix up conversion to hotplug state machine tip-bot for Sebastian Andrzej Siewior <tipbot@zytor.com> - 2016-09-20 17:10 +0200
Re: [tip:smp/hotplug] cpufreq: Fix up conversion to hotplug state machine Borislav Petkov <bp@alien8.de> - 2016-09-20 18:10 +0200
Re: [PATCH] cpufreq: fix up conversion to hotplug state machine "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2016-09-20 18:20 +0200
csiph-web