Re: [PATCH] Staging: slicoss: fix converting macros into functions

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

 



I obviously spotted the bug from just reading the patch, but the bug
could as well have been avoided by using the Smatch error checker.

drivers/staging/slicoss/slicoss.c:1608 slic_cmdq_addcmdpage()
	error: potential NULL dereference 'pslic_handle'.
drivers/staging/slicoss/slicoss.c:1608 slic_cmdq_addcmdpage()
	error: we previously assumed 'pslic_handle' could be null (see line 1606)

So that's one way to avoid certain kinds of basic mistakes.

regards,
dan carpenter
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/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