summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/dce3_1_afmt.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-10-13 13:23:48 -0400
committerAlex Deucher <alexander.deucher@amd.com>2014-10-16 18:34:06 -0400
commit83d04c39f9048807a8500e575ae3f1718a3f45bb (patch)
tree87a635abaed70e5eb69749d2a27a3e5f67588b6a /drivers/gpu/drm/radeon/dce3_1_afmt.c
parent1db7802418596880b51d78408f10f25e6fbd8656 (diff)
downloadop-kernel-dev-83d04c39f9048807a8500e575ae3f1718a3f45bb.zip
op-kernel-dev-83d04c39f9048807a8500e575ae3f1718a3f45bb.tar.gz
drm/radeon: initialize sadb to NULL in the audio code
Fixes kfree of the sadb buffer when it's NULL. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/dce3_1_afmt.c')
-rw-r--r--drivers/gpu/drm/radeon/dce3_1_afmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/dce3_1_afmt.c b/drivers/gpu/drm/radeon/dce3_1_afmt.c
index 950af15..6b1dbec 100644
--- a/drivers/gpu/drm/radeon/dce3_1_afmt.c
+++ b/drivers/gpu/drm/radeon/dce3_1_afmt.c
@@ -32,7 +32,7 @@ static void dce3_2_afmt_write_speaker_allocation(struct drm_encoder *encoder)
struct drm_connector *connector;
struct radeon_connector *radeon_connector = NULL;
u32 tmp;
- u8 *sadb;
+ u8 *sadb = NULL;
int sad_count;
list_for_each_entry(connector, &encoder->dev->mode_config.connector_list, head) {
OpenPOWER on IntegriCloud