Skip to contentSkip to conversation

MXSFB: Fix driver registration

PATCH RESEND Applied Marek Vasut 3 participants 3 messages Dec 19, 2011 – Dec 21, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 MXSFB: Fix driver registration

The driver should be registered with mxsfb_driver, not with mxsfb_devtype. This caused obvious null pointer dereference and crash.

Cc Wolfgang Denk <[email protected]>
Cc Stefano Babic <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Huang Shijie <[email protected]>
Cc Axel Lin <[email protected]>
Cc Sascha Hauer <[email protected]>
---
 drivers/video/mxsfb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/mxsfb.c +1 -1
index 18742c2..d29c7c0 100644
@@ -902,7 +902,7 @@ static struct platform_driver mxsfb_driver = {
 	},
 };
 
-module_platform_driver(mxsfb_devtype);
+module_platform_driver(mxsfb_driver);
 
 MODULE_DESCRIPTION("Freescale mxs framebuffer driver");
 MODULE_AUTHOR("Sascha Hauer, Pengutronix");
Signature · 1 line
1.7.6.4
Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · Marek Vasut

The driver should be registered with mxsfb_driver, not with mxsfb_devtype. This caused obvious null pointer dereference and crash.

Cc Wolfgang Denk <[email protected]>
Cc Stefano Babic <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Huang Shijie <[email protected]>
Cc Axel Lin <[email protected]>
Cc Sascha Hauer <[email protected]>
Signature · 2 lines
Regards,
Shawn
#2 lore raw
In reply to Marek Vasut
Quoted 12 lines · Marek Vasut

The driver should be registered with mxsfb_driver, not with mxsfb_devtype. This caused obvious null pointer dereference and crash.

Cc Wolfgang Denk <[email protected]>
Cc Stefano Babic <[email protected]>
Cc Shawn Guo <[email protected]>
Cc Huang Shijie <[email protected]>
Cc Axel Lin <[email protected]>
Cc Sascha Hauer <[email protected]>

Applied.

Thanks,

Florian Tobias Schandinat

Quoted 17 lines
---
 drivers/video/mxsfb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/mxsfb.c +1 -1
index 18742c2..d29c7c0 100644
@@ -902,7 +902,7 @@ static struct platform_driver mxsfb_driver = {
 	},
 };
 
-module_platform_driver(mxsfb_devtype);
+module_platform_driver(mxsfb_driver);
 
 MODULE_DESCRIPTION("Freescale mxs framebuffer driver");
 MODULE_AUTHOR("Sascha Hauer, Pengutronix");