commit | 1a414f48d7ccb197b61c18888b72327c98171844 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Thu Mar 10 15:49:35 2016 +0100 |
committer | Takashi Iwai <tiwai@suse.de> | Thu Mar 10 15:54:42 2016 +0100 |
tree | 49bfce24deaa299602ebf9d0e3d52da40a611944 | |
parent | 8cc1a8ab477e974a3516e73276ef4b6e546c4c65 [diff] |
ALSA: hda - Add a sanity check of pin / port mapping on i915 HDMI/DP There is an implicit rule to map between pin NID and port number on Intel HDMI/DP codec: the mapping is fixed only for NID 0x05, 0x06 and 0x07. For avoiding the possible memory corruption, add a sanity check for the NID value and splat WARN_ON() for invalid accesses. Signed-off-by: Takashi Iwai <tiwai@suse.de>