mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
osd: return if vinfo is null
PD#165381: osd: return if vinfo is null Change-Id: I21b7de315859268f51b185a77ad221ded5a2d755 Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
This commit is contained in:
committed by
Yixun Lan
parent
1f34ee9b34
commit
d18a71e502
@@ -1648,8 +1648,10 @@ int osd_notify_callback(struct notifier_block *block, unsigned long cmd,
|
||||
}
|
||||
osd_log_info("current vmode=%s, cmd: 0x%lx\n",
|
||||
vinfo->name, cmd);
|
||||
if (!strcmp(vinfo->name, "invalid"))
|
||||
if ((!strcmp(vinfo->name, "invalid")) ||
|
||||
(!strcmp(vinfo->name, "null")))
|
||||
return -1;
|
||||
|
||||
switch (cmd) {
|
||||
case VOUT_EVENT_MODE_CHANGE:
|
||||
set_osd_logo_freescaler();
|
||||
|
||||
Reference in New Issue
Block a user