public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* omapfb-main.c: check result of simple_strtoul
@ 2012-05-09 14:47 Hein Tibosch
  2012-05-10  8:23 ` Tomi Valkeinen
  0 siblings, 1 reply; 4+ messages in thread
From: Hein Tibosch @ 2012-05-09 14:47 UTC (permalink / raw)
  To: Tomi Valkeinen; +Cc: linux-omap

Tomi,


In drivers/video/omap2/omapfb/omapfb-main.c:

 static int omapfb_parse_vram_param(const char *param, int max_entries,
 		unsigned long *sizes, unsigned long *paddrs)
 {
 	int fbnum;
 	unsigned long size;
 	unsigned long paddr = 0;
 	char *p, *start;
  	start = (char *)param;
 	while (1) {
 		p = start;
  		fbnum = simple_strtoul(p, &p, 10);
-		if (p == param)
+		if (p == start)

correct?

Hein


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

end of thread, other threads:[~2012-05-10 11:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-09 14:47 omapfb-main.c: check result of simple_strtoul Hein Tibosch
2012-05-10  8:23 ` Tomi Valkeinen
2012-05-10 10:51   ` Hein Tibosch
2012-05-10 11:02     ` Tomi Valkeinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox