Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fecdeef8 authored by Stephen Boyd's avatar Stephen Boyd
Browse files

arm-smmu: Fix incorrect memset argument order



The order of arguments to memset is destination, value and then
size.

Change-Id: I159a6ff42f6d8117fc17f7a3802a19d06d53d3c1
Cc: Patrick Daly <pdaly@codeaurora.org>
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 48cc540c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -635,7 +635,7 @@ static int arm_smmu_register_legacy_master(struct device *dev,
	__be32 pci_sid;
	int err = 0;

	memset(&it, sizeof(it), 0);
	memset(&it, 0, sizeof(it));
	np = dev_get_dev_node(dev);
	if (!np || !of_find_property(np, "#stream-id-cells", NULL)) {
		of_node_put(np);