diff options
author | Alan Cox <alan@linux.intel.com> | 2012-05-14 09:41:31 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-14 12:04:28 -0400 |
commit | 05f843b5d3406c29c8af7d1eb39ea9143b21d6dc (patch) | |
tree | f054e7a60b9ec0a130e4e652121d7695cda8fd53 /drivers/tty/vt | |
parent | 1e66cded334e6cea596c72f6f650eec351b1e959 (diff) |
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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r-- | drivers/tty/vt/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c index 86dd1e302bb3..9f5c462a8692 100644 --- a/drivers/tty/vt/keyboard.c +++ b/drivers/tty/vt/keyboard.c | |||
@@ -2032,7 +2032,7 @@ int vt_do_kdskled(int console, int cmd, unsigned long arg, int perm) | |||
2032 | kbd->default_ledflagstate = ((arg >> 4) & 7); | 2032 | kbd->default_ledflagstate = ((arg >> 4) & 7); |
2033 | set_leds(); | 2033 | set_leds(); |
2034 | spin_unlock_irqrestore(&kbd_event_lock, flags); | 2034 | spin_unlock_irqrestore(&kbd_event_lock, flags); |
2035 | break; | 2035 | return 0; |
2036 | 2036 | ||
2037 | /* the ioctls below only set the lights, not the functions */ | 2037 | /* the ioctls below only set the lights, not the functions */ |
2038 | /* for those, see KDGKBLED and KDSKBLED above */ | 2038 | /* for those, see KDGKBLED and KDSKBLED above */ |