[bug report] clk: tegra: dfll: Properly clean up on failure and removal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux