re: mmc: sdhci-s3c: fix missing clock for gpio card-detect

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

 



Hello Heiko Stübner,

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

The patch fe007c02f965: "mmc: sdhci-s3c: fix missing clock for gpio 
card-detect" from Nov 18, 2012, leads to the following Smatch 
complaint:

drivers/mmc/host/sdhci-s3c.c:381 sdhci_s3c_notify_change()
	 warn: variable dereferenced before check 'host' (see line 377)

drivers/mmc/host/sdhci-s3c.c
   376	#ifdef CONFIG_PM_RUNTIME
   377		struct sdhci_s3c *sc = sdhci_priv(host);
                                       ^^^^^^^^^^^^^^^^
Dereference.

   378	#endif
   379		unsigned long flags;
   380	
   381		if (host) {
                   ^^^^^
Check.

   382			spin_lock_irqsave(&host->lock, flags);
   383			if (state) {

regards,
dan carpenter
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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

  Powered by Linux