MXSFB: Fix driver registration
Subsystems (2)
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.
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]>
Acked-by Axel Lin <[email protected]>
Acked-by Sascha Hauer <[email protected]>
--- 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
Quoted 12 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]>Acked-by Axel Lin <[email protected]>Acked-by Sascha Hauer <[email protected]>
Acked-by Shawn Guo <[email protected]>
Signature · 2 lines
Regards, Shawn
Florian Tobias Schandinat
AppliedQuoted 12 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]>Acked-by Axel Lin <[email protected]>Acked-by 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@@ -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" );