mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
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>
This commit is contained in:
parent
e73f0f0ee7
commit
224d8031e4
@ -40,7 +40,7 @@ struct pci_test {
|
||||
|
||||
static int run_test(struct pci_test *test)
|
||||
{
|
||||
struct pci_endpoint_test_xfer_param param;
|
||||
struct pci_endpoint_test_xfer_param param = {};
|
||||
int ret = -EINVAL;
|
||||
int fd;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user