File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -141,10 +141,11 @@ static int led_tg_check(const struct xt_tgchk_param *par)
141
141
goto exit_alloc ;
142
142
}
143
143
144
- /* See if we need to set up a timer */
145
- if (ledinfo -> delay > 0 )
146
- setup_timer (& ledinternal -> timer , led_timeout_callback ,
147
- (unsigned long )ledinternal );
144
+ /* Since the letinternal timer can be shared between multiple targets,
145
+ * always set it up, even if the current target does not need it
146
+ */
147
+ setup_timer (& ledinternal -> timer , led_timeout_callback ,
148
+ (unsigned long )ledinternal );
148
149
149
150
list_add_tail (& ledinternal -> list , & xt_led_triggers );
150
151
@@ -181,8 +182,7 @@ static void led_tg_destroy(const struct xt_tgdtor_param *par)
181
182
182
183
list_del (& ledinternal -> list );
183
184
184
- if (ledinfo -> delay > 0 )
185
- del_timer_sync (& ledinternal -> timer );
185
+ del_timer_sync (& ledinternal -> timer );
186
186
187
187
led_trigger_unregister (& ledinternal -> netfilter_led_trigger );
188
188
You can’t perform that action at this time.
0 commit comments