[PATCH 2.6.17-rc4-mm3] intelfb int option parsing fix

From
Dennis Munsie <hidden>
Date
2006-05-26 13:41:06
Hi all,

Passing along a patch that fixes integer option parsing in the intelfb driver.  The only option this really affects is the vram option.

regards,
dennis

---
From: Eric Hustvedt <redacted>

Fix integer option parsing in the intelfb driver. The macro wasn't
accounting for the equal sign past the option name. As a result,
the vram option always returned 0.

Signed-off-by: Eric Hustvedt <redacted>
Signed-off-by: Dennis Munsie <redacted>

--

intelfbdrv.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.17-rc4-mmpatches/drivers/video/intelfb/intelfbdrv.c	2006-05-24 11:26:40.000000000 -0600
+++ linux-2.6.17-rc4-stolen/drivers/video/intelfb/intelfbdrv.c	2006-05-25 14:21:37.000000000 -0600
@@ -264,7 +265,7 @@ MODULE_PARM_DESC(mode,
#ifndef MODULE
#define OPT_EQUAL(opt, name) (!strncmp(opt, name, strlen(name)))
-#define OPT_INTVAL(opt, name) simple_strtoul(opt + strlen(name), NULL, 0)
+#define OPT_INTVAL(opt, name) simple_strtoul(opt + strlen(name) + 1, NULL, 0)
#define OPT_STRVAL(opt, name) (opt + strlen(name))
static __inline__ char *



-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help