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:
|
||
|---|---|---|
| .. | ||
| aggregator | ||
| Kconfig | ||
| Makefile | ||
| surface3-wmi.c | ||
| surface3_button.c | ||
| surface3_power.c | ||
| surface_acpi_notify.c | ||
| surface_aggregator_cdev.c | ||
| surface_gpe.c | ||
| surfacepro3_button.c | ||