MLK-12240: mxc cec: Fix potential memory leak issue
Fix mxc cec driver potential memory leak issue. Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>pull/10/head
parent
d94b657607
commit
e6eeb48747
|
@ -158,6 +158,7 @@ void mxc_hdmi_cec_handle(u16 cec_stat)
|
|||
event->msg_len = hdmi_readb(HDMI_CEC_RX_CNT);
|
||||
if (!event->msg_len) {
|
||||
pr_err("%s: Invalid CEC message length!\n", __func__);
|
||||
vfree(event);
|
||||
return;
|
||||
}
|
||||
event->event_type = MESSAGE_TYPE_RECEIVE_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue