video: fbdev: sm712fb: fix an issue about iounmap for a wrong address
Subsystems (2)
PATCH 1/1 video: fbdev: sm712fb: fix an issue about iounmap for a wrong address
the sfb->fb->screen_base is not save the value get by iounmap() when the chip id is 0x720. so iounmap() for address sfb->fb->screen_base is not right.
Fixes 1461d6672864854 ("staging: sm7xxfb: merge sm712fb with fbdev")
CC Andy Shevchenko <[email protected]>
Signed-off-by Dejin Zheng <[email protected]>
--- drivers/video/fbdev/sm712fb.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/video/fbdev/sm712fb.c +2 -0
@@ -1429,6 +1429,8 @@ static int smtc_map_smem(struct smtcfb_info *sfb,static void smtc_unmap_smem (struct smtcfb_info *sfb) {if (sfb && sfb->fb->screen_base) { +if (sfb->chip_id =0x720 ) + sfb->fb->screen_base -=0x00200000 ;iounmap (sfb->fb->screen_base); sfb->fb->screen_base =NULL ; }
Signature · 1 line
2.25.0
Bartlomiej Zolnierkiewicz
AppliedQuoted 7 lines · Dejin Zheng
the
sfb->fb->screen_baseis not save the value get byiounmap()when the chip id is0x720. soiounmap()for addresssfb->fb->screen_baseis not right.Fixes 1461d6672864854 ("staging: sm7xxfb: merge sm712fb with fbdev")CC Andy Shevchenko <[email protected]>Signed-off-by Dejin Zheng <[email protected]>
Applied to drm-misc-next tree (patch should show up in v5.9), thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
Quoted 18 lines
--- drivers/video/fbdev/sm712fb.c | 2 ++ 1 file changed, 2 insertions(+)drivers/video/fbdev/sm712fb.c +2
-0@@ -1429,6 +1429,8 @@ static int smtc_map_smem(struct smtcfb_info *sfb,static void smtc_unmap_smem (struct smtcfb_info *sfb) {if (sfb && sfb->fb->screen_base) { +if (sfb->chip_id =0x720 ) + sfb->fb->screen_base -=0x00200000 ;iounmap (sfb->fb->screen_base); sfb->fb->screen_base =NULL ; }