From: Dan Carpenter Date: Thu, 4 Jun 2015 14:47:56 +0000 (+0300) Subject: hpsa: fix an sprintf() overflow in the reset handler X-Git-Tag: omap-for-v4.3/fixes-rc1~115^2~79 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2dc127bb299d1c7436a08e79193bd0251068356e;p=pandora-kernel.git hpsa: fix an sprintf() overflow in the reset handler The string "cmd %d RESET FAILED, new lockup detected" is not quite large enough so the sprintf() will overflow. I have increased the size of the buffer and also changed the sprintf calls to snprintf. Fixes: 73153fe533bc ('hpsa: use block layer tag for command allocation') Signed-off-by: Dan Carpenter Acked-by: Don Brace Signed-off-by: James Bottomley --- Reading git-diff-tree failed