]> git.baikalelectronics.ru Git - kernel.git/commit
drm/brige/megachips: Add checking if ge_b850v3_lvds_init() is working correctly
authorNadezda Lutovinova <lutovinova@ispras.ru>
Wed, 19 Aug 2020 14:37:56 +0000 (17:37 +0300)
committerSam Ravnborg <sam@ravnborg.org>
Sun, 23 Aug 2020 15:08:51 +0000 (17:08 +0200)
commitf222e4d659ead868cf913c50062c7e3ab484594a
tree28d82c84f28ddb6393fe0ab4b93e9186c0851e2b
parent1a04fac548410873a60462a8ba70be3307174b9e
drm/brige/megachips: Add checking if ge_b850v3_lvds_init() is working correctly

If ge_b850v3_lvds_init() does not allocate memory for ge_b850v3_lvds_ptr,
then a null pointer dereference is accessed.

The patch adds checking of the return value of ge_b850v3_lvds_init().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Nadezda Lutovinova <lutovinova@ispras.ru>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200819143756.30626-1-lutovinova@ispras.ru
drivers/gpu/drm/bridge/megachips-stdpxxxx-ge-b850v3-fw.c