re: ARM: OMAP: mcbsp: Make wakeup control generic

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

 



Hello Jarkko Nikula,

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

The patch 1a6458847dd2: "ARM: OMAP: mcbsp: Make wakeup control 
generic" from Sep 26, 2011, leads to the following Smatch complaint:

sound/soc/omap/mcbsp.c:590 omap_mcbsp_free()
	 error: we previously assumed 'mcbsp->pdata' could be null (see line 586)

sound/soc/omap/mcbsp.c
   585	
   586		if (mcbsp->pdata && mcbsp->pdata->ops && mcbsp->pdata->ops->free)
                    ^^^^^^^^^^^^
Existing check.

   587			mcbsp->pdata->ops->free(mcbsp->id - 1);
   588	
   589		/* Disable wakeup behavior */
   590		if (mcbsp->pdata->has_wakeup)
                    ^^^^^^^^^^^^^^^^^^^^^^^^
Patch introduces an unchecked dereference.

   591			MCBSP_WRITE(mcbsp, WAKEUPEN, 0);
   592	

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




[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux