Input: cleanse capabilities bits before registering device
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 6 Jan 2010 01:56:01 +0000 (17:56 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 6 Jan 2010 08:27:29 +0000 (00:27 -0800)
commit92a3a58788790645c6143b5353ef065fd26110bb
treee84cffdd0198641ce02ae65c2449070b21710847
parent4f93df40859cf471774f6ef3ec7f2870c2e8e260
Input: cleanse capabilities bits before registering device

To avoid showing garbage in capability bits, zero out bitmasks absent
from dev->evbit in case driver inadvertently leaves some garbage there.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input.c