[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1483958390.17582.16.camel@sipsolutions.net>
Date: Mon, 09 Jan 2017 11:39:50 +0100
From: Johannes Berg <johannes@...solutions.net>
To: Michał Kępień <kernel@...pniu.pl>
Cc: "David S . Miller" <davem@...emloft.net>,
Михаил Кринкин
<krinkin.m.u@...il.com>, linux-wireless@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4] rfkill: Add rfkill-any LED trigger
> > Looks better, but
> >
> > > +static struct work_struct rfkill_any_work;
> >
> > At least on module exit you need to cancel this work.
>
> It is cancelled in rfkill_any_led_trigger_unregister(). It seemed
> fitting to do it this way as rfkill_any_work is initialized in
> rfkill_any_led_trigger_register(). And if CONFIG_RFKILL_LEDS=n,
> rfkill_any_work is neither initialized nor scheduled, so we should be
> good as well. Am I missing something?
No, I just missed that, sorry.
Applied the patch now.
johannes
Powered by blists - more mailing lists