Re: [PATCH] p54: don't unregister leds when they are inited

2017-09-26 Thread Andrey Konovalov
On Tue, Sep 26, 2017 at 5:08 PM, Johannes Berg wrote: > Subject should say *not* initialized? Yes, sent v2. > > johannes

Re: [PATCH] p54: don't unregister leds when they are inited

2017-09-26 Thread Johannes Berg
Subject should say *not* initialized? johannes

[PATCH] p54: don't unregister leds when they are inited

2017-09-26 Thread Andrey Konovalov
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. INFO: trying