]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hpsa: fix an sprintf() overflow in the reset handler
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 6 May 2016 19:01:33 +0000 (12:01 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 22 May 2016 21:48:38 +0000 (14:48 -0700)
commit7de9960afff2a9ae3e10bde6d5c99f535361da3b
treedce965c74963fb752c64f3d7e2f2e71c7940e196
parent61a212b685dfa06cbc0a8e6ea3239d08da451231
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 <dan.carpenter@oracle.com>
Acked-by: Don Brace <don.brace@pmcs.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Orabug: 23064595
Signed-off-by: Manjunath Govindashetty <manjunath.govindashetty@oracle.com>
drivers/scsi/hpsa.c