Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1740039
| From | Christian Lamparter <chunkeey@googlemail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] p54: don't unregister leds when they are not initialized |
| Date | 2017-09-26 19:00 +0200 |
| Message-ID | <uu1nc-7hm-11@gated-at.bofh.it> (permalink) |
| References | <utZOq-6tc-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tuesday, September 26, 2017 5:11:33 PM CEST Andrey Konovalov wrote: > ieee80211_register_hw() in p54_register_common() may fail and leds won't > get initialized. Currently p54_unregister_common() doesn't check that and > always calls p54_unregister_leds(). The fix is to check priv->registered > flag before calling p54_unregister_leds(). > > Found by syzkaller. > > [...] > process_scheduled_works kernel/workqueue.c:2179 > worker_thread+0xb2b/0x1850 kernel/workqueue.c:2255 > kthread+0x3a1/0x470 kernel/kthread.c:231 > ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 > > Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Cc: stable@vger.kernel.org Acked-by: Christian Lamparter <chunkeey@googlemail.com> Thanks for making the patch too!
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2] p54: don't unregister leds when they are not initialized Andrey Konovalov <andreyknvl@google.com> - 2017-09-26 17:20 +0200 Re: [PATCH v2] p54: don't unregister leds when they are not initialized Christian Lamparter <chunkeey@googlemail.com> - 2017-09-26 19:00 +0200
csiph-web