]> err.no Git - systemd/commit
input_id: check event mask
authorMartin Pitt <martin.pitt@ubuntu.com>
Thu, 3 Dec 2009 11:56:44 +0000 (12:56 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Thu, 3 Dec 2009 11:56:44 +0000 (12:56 +0100)
commit7c3db771115570a951e7878062aee58119ab9046
tree8bc3fa1ef00f2f6f3e3df93dabcd930aa30985eb
parent175cb7b81d4e4d2c858bebacbf6b0ee62822afab
input_id: check event mask

Check the capabilities/ev for the particular event class before testing bits in
that event class. This avoids testing potentially bogus data if the device does
not support that class of events at all.

Thanks to Dmitry Torokhov for pointing out!
extras/input_id/input_id.c