]> git.baikalelectronics.ru Git - kernel.git/commit
drm/cirrus: fix leaky driver load error handling
authorZach Reizner <zachr@google.com>
Tue, 18 Nov 2014 01:19:41 +0000 (17:19 -0800)
committerDave Airlie <airlied@redhat.com>
Thu, 20 Nov 2014 01:41:26 +0000 (11:41 +1000)
commit93f203cdaf4f514b352d9295fcfb9dafaaf1862f
tree290248f5e52ba80d17e82b0bf22103e79b041ea6
parente09edd2501531174d15b78bfc037f8f2483c546d
drm/cirrus: fix leaky driver load error handling

Before this patch, cirrus_device_init could have failed while
cirrus_mm_init succeeded and the driver would have reported overall
success on load. This patch causes cirrus_device_init to return on
the first error encountered.

Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/cirrus/cirrus_main.c