From: Clemens Ladisch Date: Thu, 21 Aug 2014 18:55:21 +0000 (+0200) Subject: ALSA: core: fix buffer overflow in snd_info_get_line() X-Git-Tag: omap-fixes-against-v3.17-rc3~37^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddc64b278a4dda052390b3de1b551e59acdff105;p=pandora-kernel.git ALSA: core: fix buffer overflow in snd_info_get_line() snd_info_get_line() documents that its last parameter must be one less than the buffer size, but this API design guarantees that (literally) every caller gets it wrong. Just change this parameter to have its obvious meaning. Reported-by: Tommi Rantala Cc: # v2.2.26+ Signed-off-by: Clemens Ladisch Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed