linux/drivers/ntb/test
Logan Gunthorpe 912e12813d NTB: ntb_tool: reading the link file should not end in a NULL byte
When running ntb_test this warning is issued:

./ntb_test.sh: line 200: warning: command substitution: ignored null
byte in input

This is caused by the kernel returning one more byte than is necessary
when reading the link file.

Reduce the number of bytes read back to 2 as it was before the
commit that regressed this.

Fixes: 7f46c8b3a5 ("NTB: ntb_tool: Add full multi-port NTB API support")
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Allen Hubbe <allenbh@gmail.com>
Tested-by: Alexander Fomichev <fomichev.ru@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2020-06-05 20:02:08 -04:00
..
Kconfig New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
Makefile New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
ntb_msi_test.c NTB: Introduce NTB MSI Test Client 2019-06-13 09:02:51 -04:00
ntb_perf.c ntb_perf: avoid false dma unmap of destination address 2020-06-05 20:02:08 -04:00
ntb_pingpong.c ntb: ntb_pingpong: no need to check the return value of debugfs calls 2019-10-16 06:07:22 -07:00
ntb_tool.c NTB: ntb_tool: reading the link file should not end in a NULL byte 2020-06-05 20:02:08 -04:00