From: Chen Gang Date: Thu, 30 May 2013 02:35:34 +0000 (+0800) Subject: [IA64] hpsim: Fix check for overlong simscsi prefix. X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~35^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69cbc0464d87bfa38c0a4fe4d8bb751c1ec8cedf;p=pandora-kernel.git [IA64] hpsim: Fix check for overlong simscsi prefix. When "strlen(s) > MAX_ROOT_LEN", it has already said to use the default value, but in fact, it still use the input value. If happens, next sprintf() for 'fname' in simscsi_queuecommand_lck() may be memory overflow. Signed-off-by: Chen Gang Signed-off-by: Tony Luck --- Reading git-diff-tree failed