Skip to contentSkip to conversation

MXSFB: Fix driver registration

PATCH Superseded Marek Vasut 5 participants 5 messages Dec 18, 2011 – Dec 19, 2011

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

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.

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

2011/12/18 Marek Vasut <[email protected]>:

Quoted 2 lines

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

Also Cc: Florian Tobias Schandinat

maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Marek Vasut
Quoted 10 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]>
Quoted 21 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");
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 |
#3 lore raw
In reply to Marek Vasut

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 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 -2
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");
--

1.7.6.4

#4 lore raw

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 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 -2
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");
--

1.7.6.4