linux/drivers/platform/surface
Colin Ian King d26cbdd27f platform/surface: fix potential integer overflow on shift of a int
The left shift of int 32 bit integer constant 1 is evaluated using 32 bit
arithmetic and then passed as a 64 bit function argument. In the case where
func is 32 or more this can lead to an oveflow.  Avoid this by shifting
using the BIT_ULL macro instead.

Addresses-Coverity: ("Unintentional integer overflow")
Fixes: fc00bc8ac1 ("platform/surface: Add Surface ACPI Notify driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20210111144648.20498-1-colin.king@canonical.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2021-01-13 10:25:10 +01:00
..
aggregator platform/surface: aggregator: Add dedicated bus and device type 2021-01-07 00:06:39 +01:00
Kconfig platform/surface: Add Surface ACPI Notify driver 2021-01-07 00:06:39 +01:00
Makefile platform/surface: Add Surface ACPI Notify driver 2021-01-07 00:06:39 +01:00
surface3_button.c platform/surface: Move Surface 3 Button driver to platform/surface 2020-10-27 12:51:24 +01:00
surface3_power.c platform/surface: Move Surface 3 Power OpRegion driver to platform/surface 2020-10-27 12:51:24 +01:00
surface3-wmi.c
surface_acpi_notify.c platform/surface: fix potential integer overflow on shift of a int 2021-01-13 10:25:10 +01:00
surface_aggregator_cdev.c platform/surface: Add Surface Aggregator user-space interface 2021-01-07 00:06:39 +01:00
surface_gpe.c platform/surface: surface_gpe: Fix non-PM_SLEEP build warnings 2021-01-04 15:54:27 +01:00
surfacepro3_button.c platform/surface: Move Surface Pro 3 Button driver to platform/surface 2020-10-27 12:51:24 +01:00