[PATCH v2] kdrive/evdev: update keyboard LEDs (#22302)

Adam Jackson ajax at nwnk.net
Mon Feb 22 21:38:29 UTC 2016


On Mon, 2016-02-22 at 16:04 -0300, Laércio de Sousa wrote:

> @@ -442,10 +442,13 @@ EvdevKbdEnable(KdKeyboardInfo * ki)
>  static void
>  EvdevKbdLeds(KdKeyboardInfo * ki, int leds)
>  {
> -/*    struct input_event event;
> +    struct input_event event;
>      Kevdev             *ke;
>  
> -    ki->driverPrivate = ke;
> +    ke = ki->driverPrivate;
> +
> +    if (!ki || !ke)
> +        return;

Sadly this won't work, if ki == NULL then ke will be loaded (and
trigger a segfault). Pushed a version with that fixed instead:

remote: E: failed to find patch for rev 0461bca0cb2f7918c77ed45d2cbc756cf65021be.
remote: I: 0 patch(es) updated to state Accepted.
To ssh://git.freedesktop.org/git/xorg/xserver
   30b7d79..0461bca  master -> master

- ajax


More information about the xorg-devel mailing list