]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: Fix uninitialized use of ret
authorSean Paul <seanpaul@chromium.org>
Thu, 21 Sep 2017 00:13:56 +0000 (17:13 -0700)
committerSean Paul <seanpaul@chromium.org>
Thu, 21 Sep 2017 20:05:35 +0000 (13:05 -0700)
commit4c892a644d0534ab75505fb415f4e949ca1e8518
tree3334347fa7c1de3508b86933fd2cb26c96d7bcd1
parentdabd9adfc92f152a74a24a0cb07b1dafb5d1e65e
drm/rockchip: Fix uninitialized use of ret

If there are no children for lvds, ret is used uninitialized. This patch
initializes ret and returns an error if the port has no children.

Fixes: f8c529d8e205 ("drm/rockchip: Add support for Rockchip Soc LVDS")
Cc: Mark Yao <mark.yao@rock-chips.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Sandy Huang <hjc@rock-chips.com>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-rockchip@lists.infradead.org
Reviewed-by: Mark Yao <mark.yao@rock-chips.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20170921001408.1839-1-seanpaul@chromium.org
drivers/gpu/drm/rockchip/rockchip_lvds.c