OSDN Git Service

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)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Thu, 20 Dec 2018 18:13:07 +0000 (19:13 +0100)
commitfdac751355cd76e049f628afe6acb8ff4b1399f7
tree5c890e50af20043d718ea86392bc8d8576f45dbe
parentb4a1ed0cd18b771e4279b4eb9cf39b565560eea6
video: clps711x-fb: release disp device node in probe()

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>
drivers/video/fbdev/clps711x-fb.c