Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05f843b5 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman
Browse files

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: default avatarAlan Cox <alan@linux/intel.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1e66cded
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2032,7 +2032,7 @@ int vt_do_kdskled(int console, int cmd, unsigned long arg, int perm)
		kbd->default_ledflagstate = ((arg >> 4) & 7);
		kbd->default_ledflagstate = ((arg >> 4) & 7);
		set_leds();
		set_leds();
                spin_unlock_irqrestore(&kbd_event_lock, flags);
                spin_unlock_irqrestore(&kbd_event_lock, flags);
		break;
		return 0;


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