ALSA: hda - Fix static checker warning in patch_hdmi.c
authorDavid Henningsson <david.henningsson@canonical.com>
Fri, 5 Feb 2016 08:05:41 +0000 (09:05 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Sun, 28 Feb 2016 05:09:42 +0000 (00:09 -0500)
commit6cf9d4c32e8e2716eb8e9cb578dbcb2b2cad04b3
treee6640c94248e47e17c7bc1b1d29d080d9f3259e7
parent75b546e5147b81fe064454ba8a06ee58590f0f0d
ALSA: hda - Fix static checker warning in patch_hdmi.c

[ Upstream commit 360a8245680053619205a3ae10e6bfe624a5da1d ]

The static checker warning is:

sound/pci/hda/patch_hdmi.c:460 hdmi_eld_ctl_get()
error: __memcpy() 'eld->eld_buffer' too small (256 vs 512)

I have a hard time figuring out if this can ever cause an information leak
(I don't think so), but nonetheless it does not hurt to increase the
robustness of the code.

Fixes: 68e03de98507 ('ALSA: hda - hdmi: Do not expose eld data when eld is invalid')
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Cc: <stable@vger.kernel.org> # v3.9+
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
sound/pci/hda/patch_hdmi.c