]> git.baikalelectronics.ru Git - kernel.git/commit
ntb_tool: BUG: Ensure the buffer size is large enough to return all spads
authorLogan Gunthorpe <logang@deltatee.com>
Mon, 20 Jun 2016 19:15:08 +0000 (13:15 -0600)
committerJon Mason <jdmason@kudzu.us>
Fri, 5 Aug 2016 14:05:31 +0000 (10:05 -0400)
commit25c63f9e2850486445333c2e91d2cd2ac46eb56e
tree1c2a3ae29c27bcb9bb5dcae08c1470d3b0d15516
parente0a846c6bb6b5ea6e6720196fc8a77b916a856ac
ntb_tool: BUG: Ensure the buffer size is large enough to return all spads

On hardware with 32 scratchpad registers the spad field in ntb tool
could chop off the end. The maximum buffer size is increased from
256 to 15 times the number or scratchpads.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Allen Hubbe <Allen.Hubbe@emc.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_tool.c