]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
tty: Fix LED error return
authorAlan Cox <alan@linux.intel.com>
Mon, 14 May 2012 13:41:31 +0000 (14:41 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 14 May 2012 17:43:24 +0000 (10:43 -0700)
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 <torvalds@linux-foundation.org>
drivers/tty/vt/keyboard.c

index 29ca20dbd335da2235339b8f7970849f2d22895f..3b0c4e32ed7b61d367d530defb11c1f24f7bb938 100644 (file)
@@ -2044,7 +2044,7 @@ int vt_do_kdskled(int console, int cmd, unsigned long arg, int perm)
                kbd->default_ledflagstate = ((arg >> 4) & 7);
                set_leds();
                 spin_unlock_irqrestore(&kbd_event_lock, flags);
-               break;
+               return 0;
 
        /* the ioctls below only set the lights, not the functions */
        /* for those, see KDGKBLED and KDSKBLED above */