[PATCH v2] power: fix pstate number parsing

Thomas Monjalon thomas at monjalon.net
Wed Oct 26 23:35:12 CEST 2022


12/10/2022 14:36, Markus Theil:
> From: Markus Theil <markus.theil at secunet.com>
> 
> When converting atoi to strtol in a revision
> of introducing sysfs support for turbo percentage,
> a necessary check against '\n' returned by sysfs
> was not introduced.
> 
> Fixes: de254dac608e ("power: read P-state turbo percentage from sysfs")
> Reviewed-by: Reshma Pattan <reshma.pattan at intel.com>
> Acked-by: Reshma Pattan <reshma.pattan at intel.com>
> Signed-off-by: Markus Theil <markus.theil at secunet.com>

Applied, thanks.





More information about the dev mailing list