drm/radeon: fix null pointer dereference in dce6+ audio code
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Dec 2013 22:45:14 +0000 (17:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Dec 2013 00:56:45 +0000 (19:56 -0500)
commit53dc0b0c94907db53444ba485f8ae95111b0d6fd
tree73039921fdf0f810956bc30bced78bea5b5afa48
parent0ca223b029a261e82fb2f50c52eb85d510f4260e
drm/radeon: fix null pointer dereference in dce6+ audio code

Don't crash if the encoder does not have an afmt struct.

bug:
https://bugs.freedesktop.org/show_bug.cgi?id=72283

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/dce6_afmt.c