memory: tegra: Changes for v4.11-rc1

This contains a single commit that plugs a potential device node leak in
 error handling code.
 -----BEGIN PGP SIGNATURE-----
 
 iQJHBAABCAAxFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAliLD8sTHHRyZWRpbmdA
 bnZpZGlhLmNvbQAKCRDdI6zXfz6zoZBLEACy9x8owEO7lcEEUZNYPGPOs9HzKJ2E
 r4G2z9Q7y5qW5+OIb4xTAX6A5khntOA3o9tm0nW3XKBLk1yaUTmRc4nGTdoDjDyp
 gBu1GJHKBvJuP8GRLUBesisIBsl5PoY3XYRnTiKWNkEeYqn/NWvWLjhFR5r7XmzR
 fJUaniCY3rVzYZUuq9YQb1CD1YERKUJ9twloAZ+8shsqTz1UznrbwqiyHrBP6VlH
 7PIc3aXyyGZwt3+tPg6UEjqRLXbBpILx9tbH1nfQYLslFDPD+Y6Gc3zmMX1VXu2w
 XZr8WkjrdYTxxho/KyI/fyLFRs1vyFaevq09uGi34VTGO8GLDvgdJP6vcMssLQRp
 i/QAxakA03aBUx8zMrDkOfO46Qm2OJ+AOcffSy8GWlm3nWIB85JN7QTUfTsRVtvG
 Jr8ub9bKnuaCOm/WJlOlFg/xIsA4OMLwblzBuZzzDlLXL25TEwKhYI7/ww7hSdld
 O8Q4XAmvBStODO97ErcjQkroquhaixMWrlZfFCpFA/3Ne17Z+k2+ETMhkaTWvLXX
 TlW7Lb/UUISL1mWuf4wNUmRLTyyAA+NHXEqxhBswsA4EqneIeTkjAFO6dUFN61zx
 Ce92+PkaKBth8pThav/vRlwrMFe3cweXzlzunSfeP+XoAfxw/qqYiLG8BLXGazji
 +xlxnVLq9oIEng==
 =vWHP
 -----END PGP SIGNATURE-----

Merge tag 'tegra-for-4.11-memory' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux into next/drivers

memory: tegra: Changes for v4.11-rc1

This contains a single commit that plugs a potential device node leak in
error handling code.

* tag 'tegra-for-4.11-memory' of git://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux:
  memory: tegra: Add a missing 'of_node_put()' call

Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
Olof Johansson 2017-01-29 20:57:59 -08:00
commit 95f4e568eb
1 changed files with 1 additions and 4 deletions

View File

@ -1115,11 +1115,10 @@ static int tegra_emc_probe(struct platform_device *pdev)
}
mc = of_find_device_by_node(np);
of_node_put(np);
if (!mc)
return -ENOENT;
of_node_put(np);
emc->mc = platform_get_drvdata(mc);
if (!emc->mc)
return -EPROBE_DEFER;
@ -1135,9 +1134,7 @@ static int tegra_emc_probe(struct platform_device *pdev)
}
err = tegra_emc_load_timings_from_dt(emc, np);
of_node_put(np);
if (err)
return err;