]> git.baikalelectronics.ru Git - kernel.git/commit
drm: atmel-hlcdc: Uninitialized return in atmel_hlcdc_create_outputs()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 15 Apr 2017 19:21:42 +0000 (22:21 +0300)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 18 Apr 2017 09:52:45 +0000 (11:52 +0200)
commitae0a97518e597fa1513d3b596b284db063864dfd
tree6b3aff7ee3c42221aedab514006a82482541a575
parente1b816c6c3eb5d704a0c85e9bd3116862b1bd87a
drm: atmel-hlcdc: Uninitialized return in atmel_hlcdc_create_outputs()

It's not possible for endpoint to be zero so the test doesn't work.  If
we break on the first iteration through the loop then endpoint is 1 and
"ret" is uninitialized.

Fixes: ffec6c22a980 ("drm: convert drivers to use drm_of_find_panel_or_bridge")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170415192142.GA6416@mwanda
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_output.c