Linux Tegra architecture development
 help / color / mirror / Atom feed
* [bug report] clk: tegra: dfll: Properly clean up on failure and removal
@ 2017-11-13 11:00 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2017-11-13 11:00 UTC (permalink / raw)
  To: treding-DDmLM1+adcrQT0dZR+AlfA; +Cc: linux-tegra-u79uwXL29TY76Z2rM5mHXA

Hello Thierry Reding,

The patch f7c42d986217: "clk: tegra: dfll: Properly clean up on
failure and removal" from Apr 8, 2016, leads to the following static
checker warning:

	drivers/clk/tegra/clk-tegra124-dfll-fcpu.c:140 tegra124_dfll_fcpu_remove()
	error: 'soc' dereferencing possible ERR_PTR()

drivers/clk/tegra/clk-tegra124-dfll-fcpu.c
   131  static int tegra124_dfll_fcpu_remove(struct platform_device *pdev)
   132  {
   133          struct tegra_dfll_soc_data *soc;
   134  
   135          soc = tegra_dfll_unregister(pdev);
   136          if (IS_ERR(soc))
                           ^^^
   137                  dev_err(&pdev->dev, "failed to unregister DFLL: %ld\n",
   138                          PTR_ERR(soc));
   139  
   140          tegra_cvb_remove_opp_table(soc->dev, soc->cvb, soc->max_freq);
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

   141  
   142          return 0;
   143  }


regards,
dan carpenter

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-13 11:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-13 11:00 [bug report] clk: tegra: dfll: Properly clean up on failure and removal Dan Carpenter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox