Search Linux Wireless

re: NFC: Add Intel Fields Peak NFC solution driver

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

 



Hello Robert Dolca,

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

The patch a06347c04c13: "NFC: Add Intel Fields Peak NFC solution 
driver" from Oct 22, 2015, leads to the following Smatch complaint:

drivers/nfc/fdp/i2c.c:216 fdp_nci_i2c_irq_thread_fn()
	 warn: variable dereferenced before check 'phy' (see line 213)

drivers/nfc/fdp/i2c.c
   212	
   213		client = phy->i2c_dev;
                         ^^^^^
Dereference.

   214		dev_dbg(&client->dev, "%s\n", __func__);
   215	
   216		if (!phy || irq != phy->i2c_dev->irq) {
                    ^^^^
Check.

   217			WARN_ON_ONCE(1);
   218			return IRQ_NONE;

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



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux