re: [media] exynos4-is: Add support for asynchronous subdevices registration

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

 



Hello Sylwester Nawrocki,

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

The patch fa91f1056f17: "[media] exynos4-is: Add support for 
asynchronous subdevices registration" from Feb 24, 2014, leads to the 
following Smatch complaint:

drivers/media/platform/exynos4-is/media-dev.c:1206 __fimc_md_set_camclk()
	 warn: variable dereferenced before check 'fmd' (see line 1203)

drivers/media/platform/exynos4-is/media-dev.c
  1202		 */
  1203		if (fmd->pdev->dev.of_node)
                    ^^^^^^^^^
Patch adds a dereference.

  1204			return 0;
  1205	
  1206		if (WARN_ON(si->clk_id >= FIMC_MAX_CAMCLKS) || !fmd || !fmd->pmf)
                                                               ^^^^
Old check.

  1207			return -EINVAL;
  1208	

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




[Index of Archives]     [Linux SoC Development]     [Linux Rockchip Development]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Linux SCSI]     [Yosemite News]

  Powered by Linux