Skip to content
Commit 7bb99c7e authored by Christian König's avatar Christian König Committed by Greg Kroah-Hartman
Browse files

drm/radeon: fix error handling in radeon_driver_open_kms



commit 4722f463 upstream.

The return value was never initialized so the cleanup code executed when
it isn't even necessary.

Just add proper error handling.

Fixes: ab50cb9d ("drm/radeon/radeon_kms: Fix a NULL pointer dereference in radeon_driver_open_kms()")
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Tested-by: default avatarJan Stancek <jstancek@redhat.com>
Tested-by: default avatarBorislav Petkov <bp@suse.de>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0ca7ec6d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment