xkb: fix null dereference
Just an obvious silly mistake. Signed-off-by: Ran Benita <ran234@gmail.com> Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
1 parent
8256ef6686
commit
fd85a7b2ce
1 file changed
+1
-1
@@ -151,7 +151,7 @@ int kbd_dev_process_key(struct kbd_dev *kbd,
|
||||
if (key_state == KEY_REPEATED && !xkb_key_repeats(keymap, keycode))
|
||||
return -ENOKEY;
|
||||
|
||||
if (num_keysyms < 0)
|
||||
if (num_keysyms <= 0)
|
||||
return -ENOKEY;
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user