]> 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)
commit9fa01e4d9665cdb38c97784d5032a3f0d1cc0a8f
tree1c2a3ae29c27bcb9bb5dcae08c1470d3b0d15516
parent8bdc4eebd1a96e022c1c85edaca9284de654c7da
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