mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
hdmirx: fix Coverity errors
PD#163391: hdmirx: fix Coverity errors #629 #633~640 #643 #587 #691~692 #715 #721 #757~759 #761 #601 #861 Change-Id: I088bc5f13bcad837e26d6216363063cad2ac497c Signed-off-by: yicheng shen <yicheng.shen@amlogic.com>
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
//#include "hdmi_rx_edid.h"
|
||||
|
||||
|
||||
#define RX_VER0 "ver.2018-03-19-S"
|
||||
#define RX_VER0 "ver.2018-03-30"
|
||||
/*
|
||||
*
|
||||
*
|
||||
|
||||
@@ -355,6 +355,10 @@ void rx_modify_edid(unsigned char *buffer,
|
||||
addition_size = (*addition & 0x1f) + 1;
|
||||
cur_data = kmalloc(
|
||||
addition_size + cur_size, GFP_KERNEL);
|
||||
if (cur_data != 0) {
|
||||
rx_pr("allocate cur_data memory failed\n");
|
||||
return;
|
||||
}
|
||||
memcpy(cur_data, buffer + start_addr, cur_size);
|
||||
/*add addition block property to local edid*/
|
||||
rx_mix_block(cur_data, addition);
|
||||
@@ -395,9 +399,8 @@ void rx_modify_edid(unsigned char *buffer,
|
||||
/*copy current edid data*/
|
||||
memcpy(buffer + start_addr_temp, cur_data,
|
||||
addition_size);
|
||||
if (cur_data != 0)
|
||||
kfree(cur_data);
|
||||
}
|
||||
kfree(cur_data);
|
||||
}
|
||||
|
||||
void rx_edid_update_audio_info(unsigned char *p_edid,
|
||||
|
||||
Reference in New Issue
Block a user