Skip to content

Commit eea41ae

Browse files
Alan Coxtorvalds
authored andcommitted
tty: Fix LED error return
3.4-rc introduced a regression when setting the LEDS. We do the right thing but then return an error code. Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=43144 Reported-by: Christian Casteyde Signed-off-by: Alan Cox <alan@linux/intel.com> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 9ff00d5 commit eea41ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/vt/keyboard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,7 @@ int vt_do_kdskled(int console, int cmd, unsigned long arg, int perm)
20442044
kbd->default_ledflagstate = ((arg >> 4) & 7);
20452045
set_leds();
20462046
spin_unlock_irqrestore(&kbd_event_lock, flags);
2047-
break;
2047+
return 0;
20482048

20492049
/* the ioctls below only set the lights, not the functions */
20502050
/* for those, see KDGKBLED and KDSKBLED above */

0 commit comments

Comments
 (0)