]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit625f0802e84e47760959a5015fdc704d809fd6c8
tree1c2a3ae29c27bcb9bb5dcae08c1470d3b0d15516
parentc792eba12cd200e67d08e20a22763ff1970a685b
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