video: clps711x-fb: release disp device node in probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 20 Dec 2018 18:13:07 +0000 (19:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:46:06 +0000 (19:46 +0100)
commit63bb4d78244d703564ff2e43331c387f093d2a02
tree875ccc1573bae343143fcec775f1e00cb1d690ee
parent4634125557a2354a675f0bd0bb89a8a994b5b39e
video: clps711x-fb: release disp device node in probe()

[ Upstream commit fdac751355cd76e049f628afe6acb8ff4b1399f7 ]

clps711x_fb_probe() increments refcnt of disp device node by
of_parse_phandle() and leaves it undecremented on both
successful and error paths.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/clps711x-fb.c