kernel_optimize_test/drivers/ntb
Logan Gunthorpe c792eba12c 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>
2016-08-05 10:05:31 -04:00
..
hw NTB: Remove _addr functions from ntb_hw_amd 2016-03-26 11:44:33 -04:00
test ntb_tool: Fix infinite loop bug when writing spad/peer_spad file 2016-08-05 10:05:31 -04:00
Kconfig NTB: Add ping pong test client 2015-07-04 14:07:42 -04:00
Makefile NTB: Add ping pong test client 2015-07-04 14:07:42 -04:00
ntb_transport.c ntb: stop link work when we do not have memory 2016-03-17 20:38:40 -04:00
ntb.c ntb: avoid format string in dev_set_name 2015-08-09 16:32:22 -04:00