public inbox for linux-mmc@vger.kernel.org
 help / color / mirror / Atom feed
* re: mmc: SD/MMC Host Controller for Wondermedia WM8505/WM8650
@ 2013-11-08 10:03 Dan Carpenter
  0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2013-11-08 10:03 UTC (permalink / raw)
  To: linux; +Cc: linux-mmc

Hello Tony Prisk,

This is a semi-automatic email about new static checker warnings.

The patch 3a96dff0f828: "mmc: SD/MMC Host Controller for Wondermedia 
WM8505/WM8650" from Nov 18, 2012, leads to the following Smatch 
complaint:

drivers/mmc/host/wmt-sdmmc.c:764 wmt_mci_probe()
	 warn: variable dereferenced before check 'of_id' (see line 760)

drivers/mmc/host/wmt-sdmmc.c
   759			of_match_device(wmt_mci_dt_ids, &pdev->dev);
   760		const struct wmt_mci_caps *wmt_caps = of_id->data;
                                                      ^^^^^^^^^^^
Dereference.

   761		int ret;
   762		int regular_irq, dma_irq;
   763	
   764		if (!of_id || !of_id->data) {
                     ^^^^^
Check.

   765			dev_err(&pdev->dev, "Controller capabilities data missing\n");
   766			return -EFAULT;

regards,
dan carpenter

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

only message in thread, other threads:[~2013-11-08 10:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08 10:03 mmc: SD/MMC Host Controller for Wondermedia WM8505/WM8650 Dan Carpenter

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