video: clps711x-fb: release disp device node in probe()
commit0e4bd8f5436c59d8c0bc416d320f91b22615b12f
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 20 Dec 2018 18:13:07 +0000 (20 19:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:25 +0000 (12 20:02 +0100)
treeeda79991b062e8fa5cc56e553c658efda58b38c7
parentc06394a5c9368db3e25423bd5f96cb986973d9aa
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