tools: PCI: Zero-initialize param
authorShunyong Yang <yang.shunyong@gmail.com>
Wed, 14 Jul 2021 13:23:31 +0000 (21:23 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 5 Aug 2021 10:01:30 +0000 (11:01 +0100)
commit224d8031e482bb83e2166779f46c7bb1a5f4a888
tree58fda6139a899e06b346124c60c92c387ed96214
parente73f0f0ee7541171d89f2e2491130c7771ba58d3
tools: PCI: Zero-initialize param

The values in param may be random if they are not initialized, which
may cause use_dma flag set even when "-d" option is not provided
in command line. Initializing all members to 0 to solve this.

Link: https://lore.kernel.org/r/20210714132331.5200-1-yang.shunyong@gmail.com
Signed-off-by: Shunyong Yang <yang.shunyong@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
tools/pci/pcitest.c