diff options
author | Dara Ramesh <dramesh@nvidia.com> | 2011-04-12 14:20:57 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-04-26 15:55:35 -0700 |
commit | bfbd40fb75db1225891bed3f22556f26e4c83f14 (patch) | |
tree | ae7d1204f3b66d780ac4709c21b29678d0e3683c /sound | |
parent | 69419be9fd71d2b3a76d3e5f7200eceacefa1bed (diff) |
ARM: tegra: hda_eld :fix dmesg output of HDMI info
Fixed suspicious sizeof() in call to snd_print_pcm_bits()
Bug 806009
Original-Change-Id: If8b0736b63a424329572e98c888f6e0ad71ea210
Reviewed-on: http://git-master/r/27479
Tested-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Change-Id: Ic9a657c91c1b0c7f60466770aab3eb4e7b5eb53a
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_eld.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c index b6c74642d9e2..3c17a0a5ea81 100644 --- a/sound/pci/hda/hda_eld.c +++ b/sound/pci/hda/hda_eld.c @@ -381,7 +381,7 @@ static void hdmi_show_short_audio_desc(struct cea_sad *a) snd_print_pcm_rates(a->rates, buf, sizeof(buf)); if (a->format == AUDIO_CODING_TYPE_LPCM) - snd_print_pcm_bits(a->sample_bits, buf2 + 8, sizeof(buf2 - 8)); + snd_print_pcm_bits(a->sample_bits, buf2 + 8, sizeof(buf2) - 8); else if (a->max_bitrate) snprintf(buf2, sizeof(buf2), ", max bitrate = %d", a->max_bitrate); |