mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 11:50:43 +09:00
Merge "hdmirx: fix kasan bug in rx_get_edid" into amlogic-4.9-dev
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
*
|
||||
*
|
||||
*/
|
||||
#define RX_VER2 "ver.2018/09/04"
|
||||
#define RX_VER2 "ver.2018/09/06"
|
||||
|
||||
/*print type*/
|
||||
#define LOG_EN 0x01
|
||||
|
||||
@@ -1163,6 +1163,8 @@ unsigned int hdmi_rx_top_edid_update(void)
|
||||
u_int phy_addr[E_PORT_NUM] = {0, 0, 0, 0};
|
||||
u_char checksum[E_PORT_NUM] = {0, 0, 0, 0};
|
||||
|
||||
if (edid_index >= EDID_LIST_NUM)
|
||||
return 0;
|
||||
/* get edid from buffer, return buffer addr */
|
||||
pedid_data = rx_get_edid(edid_index);
|
||||
|
||||
@@ -1195,7 +1197,7 @@ unsigned int hdmi_rx_top_edid_update(void)
|
||||
/* update physical and checksum */
|
||||
rx_edid_update_overlay(phy_addr_offset, phy_addr, checksum);
|
||||
}
|
||||
return true;
|
||||
return 1;
|
||||
}
|
||||
|
||||
void rx_edid_print_vic_fmt(unsigned char i,
|
||||
|
||||
Reference in New Issue
Block a user