drm/radeon: check for 0 count in speaker allocation and SAD code
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Dec 2013 14:05:49 +0000 (09:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Dec 2013 14:23:16 +0000 (09:23 -0500)
commitb67ce39a30976171e7b96b30a94a0216ab89df97
tree81924e72b3b1d49aac012379c1f379c8740f9393
parentc745fe611ca42295c9d91d8e305d27983e9132ef
drm/radeon: check for 0 count in speaker allocation and SAD code

If there is no speaker allocation block or SAD block, bail
early.

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
drivers/gpu/drm/radeon/evergreen_hdmi.c