[PATCH] fbdev/nvidiafb: Correct const string length in nvidiafb_setup()
Helge Deller
deller at gmx.de
Thu Apr 24 22:18:05 UTC 2025
On 4/7/25 13:55, Zijun Hu wrote:
> From: Zijun Hu <quic_zijuhu at quicinc.com>
>
> The actual length of const string "noaccel" is 7, but the strncmp()
> branch in nvidiafb_setup() wrongly hard codes it as 6.
>
> Fix by using actual length 7 as argument of the strncmp().
>
> Signed-off-by: Zijun Hu <quic_zijuhu at quicinc.com>
> ---
> drivers/video/fbdev/nvidia/nvidia.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
applied.
Thanks!
Helge
More information about the dri-devel
mailing list