summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_edid.h
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2022-06-02 22:06:28 +0200
committerHelge Deller <deller@gmx.de>2022-06-20 12:12:27 +0200
commitcad564ca557f8d3bb3b1fa965d9a2b3f6490ec69 (patch)
tree4b127d4df3c66cb760d21e59a8fa45fdeb07488d /include/drm/drm_edid.h
parent3866cba87dcd0162fb41e9b3b653d0af68fad5ec (diff)
downloadlinux-cad564ca557f8d3bb3b1fa965d9a2b3f6490ec69.tar.bz2
fbcon: Fix boundary checks for fbcon=vc:n1-n2 parameters
The user may use the fbcon=vc:<n1>-<n2> option to tell fbcon to take over the given range (n1...n2) of consoles. The value for n1 and n2 needs to be a positive number and up to (MAX_NR_CONSOLES - 1). The given values were not fully checked against those boundaries yet. To fix the issue, convert first_fb_vc and last_fb_vc to unsigned integers and check them against the upper boundary, and make sure that first_fb_vc is smaller than last_fb_vc. Cc: stable@vger.kernel.org # v4.19+ Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Helge Deller <deller@gmx.de> Link: https://patchwork.freedesktop.org/patch/msgid/YpkYRMojilrtZIgM@p100
Diffstat (limited to 'include/drm/drm_edid.h')
0 files changed, 0 insertions, 0 deletions