diff options
author | Dan Carpenter <[email protected]> | 2015-06-04 17:47:56 +0300 |
---|---|---|
committer | James Bottomley <[email protected]> | 2015-07-30 13:11:40 -0700 |
commit | 2dc127bb299d1c7436a08e79193bd0251068356e (patch) | |
tree | 297d84999ec3e49cf52476bac2f6228efd39022a /lib/memory-notifier-error-inject.c | |
parent | 9c8108a4d3a837c51a29f28229a06d97654eaeb6 (diff) |
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 <[email protected]>
Acked-by: Don Brace <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions