drm/edid: catch kmalloc failure in drm_edid_to_speaker_allocation
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Sep 2013 22:44:39 +0000 (18:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Oct 2013 21:13:43 +0000 (17:13 -0400)
commitaaed41ec5b8d734f79d7b87723190256ac6a0926
tree86a914728a6f2cb5195a033475edbf8307ef2b8f
parent1d083bc93d159ebcb46c5cbeca512ddd74a74e4b
drm/edid: catch kmalloc failure in drm_edid_to_speaker_allocation

Return -ENOMEM if the allocation fails.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/drm_edid.c