]> git.karo-electronics.de Git - linux-beck.git/commit
drm/udl: Initialize ret in udl_driver_load
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 5 Apr 2014 08:25:18 +0000 (10:25 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 22 Apr 2014 13:39:37 +0000 (15:39 +0200)
commite39a52da87fc49eeb0a91e7db3c30bd61e87bdb7
tree0415b00dc9ed824cab9b2ebd6cdb11e609f1c1f8
parent2ffd65283bcf120f6bac0d5954c7ccdb845fcbd5
drm/udl: Initialize ret in udl_driver_load

We need to set it to -ENODEV when we don't recognize the device.
Otherwise we return/print stack garbage.

Spotted by coverity.

Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/udl/udl_main.c