All of lore.kernel.org
 help / color / mirror / Atom feed
* re: [media] exynos4-is: Add Exynos5250 SoC support to fimc-lite driver
@ 2013-08-21  8:52 Dan Carpenter
  2013-08-25 13:30 ` Sylwester Nawrocki
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2013-08-21  8:52 UTC (permalink / raw)
  To: s.nawrocki; +Cc: linux-samsung-soc

Hello Sylwester Nawrocki,

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

The patch 086eca2905d0: "[media] exynos4-is: Add Exynos5250 SoC 
support to fimc-lite driver" from Jun 14, 2013, leads to the 
following Smatch complaint:

drivers/media/platform/exynos4-is/fimc-lite.c:1521 fimc_lite_probe()
	 error: we previously assumed 'dev->of_node' could be null (see line 1511)

drivers/media/platform/exynos4-is/fimc-lite.c
  1510	
  1511		if (dev->of_node) {
                    ^^^^^^^^^^^^
Existing check.

  1512			of_id = of_match_node(flite_of_match, dev->of_node);
  1513			if (of_id)
  1514				drv_data = (struct flite_drvdata *)of_id->data;
  1515			fimc->index = of_alias_get_id(dev->of_node, "fimc-lite");
  1516		}
  1517	
  1518		if (!drv_data || fimc->index >= drv_data->num_instances ||
  1519							fimc->index < 0) {
  1520			dev_err(dev, "Wrong %s node alias\n",
  1521						dev->of_node->full_name);
                                                ^^^^^^^^^^^^^^
Patch adds this dereference.

  1522			return -EINVAL;
  1523		}

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-25 13:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-21  8:52 [media] exynos4-is: Add Exynos5250 SoC support to fimc-lite driver Dan Carpenter
2013-08-25 13:30 ` Sylwester Nawrocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.