MXSFB: Fix driver registration
Subsystems (2)
PATCH 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.
--- drivers/video/mxsfb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/video/mxsfb.c +1 -1
@@ -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
2011/12/18 Marek Vasut <[email protected]>:
Quoted 2 lines
The driver should be registered with
mxsfb_driver, not withmxsfb_devtype. This caused obvious null pointer dereference and crash.
Also Cc: Florian Tobias Schandinat
Quoted 10 lines · Marek Vasut
The driver should be registered with
mxsfb_driver, not withmxsfb_devtype. This caused obvious null pointer dereference and crash.Signed-off-by Marek Vasut <[email protected]>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]>
Quoted 21 lines
--- drivers/video/mxsfb.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/video/mxsfb.c +1
-1@@ -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
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
Cc-ed Florian and [email protected], as I guess Florian is the person who will take this patch.
-- Regards,Shawn
Quoted 30 lines · Marek Vasut
The driver should be registered with
mxsfb_driver, not withmxsfb_devtype. This caused obvious null pointer dereference and crash.Signed-off-by Marek Vasut <[email protected]>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
-2@@ -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"); --1.7.6.4
Hi Marek,
can you please resend the patch to me and the fbdev mailing list, preferably with all Ack's you received until now included.
Quoted 2 lines · Shawn Guo
Cc-ed Florian and [email protected], as I guess Florian is the person who will take this patch.
Thanks, I will. I guess you wanted to Ack this patch?
Thanks,
Florian Tobias Schandinat
Quoted 34 lines
-- Regards,Shawn
Quoted 30 lines · Marek Vasut
The driver should be registered with
mxsfb_driver, not withmxsfb_devtype. This caused obvious null pointer dereference and crash.Signed-off-by Marek Vasut <[email protected]>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
-2@@ -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" ); --1.7.6.4