Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 73153fe ('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]>
- Loading branch information