In the Linux kernel, the following vulnerability has been resolved: drm/i915/bios: range check LFP Data Block panel_type2 While the panel_type from LFP Data Block is range checked, panel_type2 is not. Add a few helpers for range checking, and use them to not only check panel_type2, but also improve clarity and correctness in the panel type selection. Discovered using AI-assisted static analysis confirmed by Intel Product Security. v2: - Fix commit message typo (Michał) - Add is_panel_type_pnp() (Ville) (cherry picked from commit c9ebe5d2f25729d6cfbbb1235d640bf67f9275df)
https://git.kernel.org/stable/c/e7b5694645b03e80830dc141b59fc65aac693c70
https://git.kernel.org/stable/c/8b2da44446f9dce2ae50fee78bac2734d4277143
https://git.kernel.org/stable/c/8887b94d2fc93071bf6ff09c39d474510e6f582f
https://git.kernel.org/stable/c/2084503f2d087bf956198e7f6eb25b03a7049cb2