mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
rk fb: kfree envp[1], if we not do real switch screen
Signed-off-by: hjc <hjc@rock-chips.com>
This commit is contained in:
@@ -3224,6 +3224,7 @@ int rk_fb_switch_screen(struct rk_screen *screen, int enable, int lcdc_id)
|
||||
if (dev_drv->cur_screen->type != screen->type) {
|
||||
dev_drv->hdmi_switch = 0;
|
||||
mutex_unlock(&dev_drv->switch_screen);
|
||||
kfree(envp[1]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user