diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2016-05-27 23:38:31 +0300 |
---|---|---|
committer | Jon Mason <jdmason@kudzu.us> | 2016-08-05 17:05:31 +0300 |
commit | c792eba12cd200e67d08e20a22763ff1970a685b (patch) | |
tree | 287e02e1f7945fbb24826f002177be36513a2e69 /drivers/reset/sti | |
parent | 523d939ef98fd712632d93a5a2b588e477a7565e (diff) | |
download | linux-c792eba12cd200e67d08e20a22763ff1970a685b.tar.xz |
ntb_tool: Fix infinite loop bug when writing spad/peer_spad file
If you tried to write two spads in one line, as per the example:
root@peer# echo '0 0x01010101 1 0x7f7f7f7f' > $DBG_DIR/peer_spad
then the CPU would freeze in an infinite loop.
This wasn't immediately obvious but 'pos' was not incrementing the
buffer, so after reading the second pair of values, 'pos' would once
again be 3 and it would re-read the second pair of values ad infinitum.
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Allen Hubbe <Allen.Hubbe@emc.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/reset/sti')
0 files changed, 0 insertions, 0 deletions