1
0
Fork 0

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
Sandor Yu 2016-01-12 17:30:48 +08:00 committed by Jason Liu
parent d94b657607
commit e6eeb48747
1 changed files with 1 additions and 0 deletions

View File

@ -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;