re: staging: unisys: Convert bus functions to pass bus_info pointer around

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

 



Hello Don Zickus,

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

The patch 3032aeddd85e: "staging: unisys: Convert bus functions to 
pass bus_info pointer around" from May 13, 2015, leads to the 
following Smatch complaint:

drivers/staging/unisys/visorbus/visorchipset.c:971 bus_responder()
	 warn: variable dereferenced before check 'p' (see line 969)

drivers/staging/unisys/visorbus/visorchipset.c
   968		bool need_clear = false;
   969		u32 bus_no = p->bus_no;
                             ^^^^^^^^^
Dereference.

   970	
   971		if (!p)
                    ^^^
Check.

   972			return;
   973	

regards,
dan carpenter
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux