]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fbdev: pxafb: Fix multiple clamped values in pxafb_adjust_timing
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 2 Dec 2025 18:15:32 +0000 (19:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:17:03 +0000 (10:17 +0100)
commit1470cccf067e7c1be523b9920a36ed1a3883cdd2
treeb20c885aa3c7bf5938ddd5c2aa40e73147f94511
parentf21b17cb5ed5966c5a1c94afd329b9fb570affe1
fbdev: pxafb: Fix multiple clamped values in pxafb_adjust_timing

commit 0155e868cbc111846cc2809c1546ea53810a56ae upstream.

The variables were never clamped because the return value of clamp_val()
was not used. Fix this by assigning the clamped values, and use clamp()
instead of clamp_val().

Cc: stable@vger.kernel.org
Fixes: 3f16ff608a75 ("[ARM] pxafb: cleanup of the timing checking code")
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/fbdev/pxafb.c