platform/surface: aggregator: fix a bit test
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 20 Apr 2021 08:44:02 +0000 (11:44 +0300)
committerHans de Goede <hdegoede@redhat.com>
Tue, 20 Apr 2021 15:28:42 +0000 (17:28 +0200)
commit366f0a30c8a01e79255221539a52909cc4c7bd25
tree30c278753d0bf9655cc81cd2d6eb76b1150ef7de
parentdd5566d6d80c2d9936f8b8b36a7a9599cbfe47a7
platform/surface: aggregator: fix a bit test

The "funcs" variable is a u64.  If "func" is more than 31 then the
BIT() shift will wrap instead of testing the high bits.

Fixes: c167b9c7e3d6 ("platform/surface: Add Surface Aggregator subsystem")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/YH6UUhJhGk3mk13b@mwanda
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/surface/aggregator/controller.c