mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
hdmitx: correct the return value of edid_store [1/1]
PD#SWPL-103371 Problem: When load edid.bin to /sys/class/amhdmitx/amhdmitx0/edid, kernel will [ 344.495418@4] [load_edid_data] new edid loaded! FORTIFY: write: count 4294967284 > SSIZE_MAX Aborted Solution: correct the return value of edid_store Verify: g12 Test: u212 Change-Id: Iadd97ff4c9688bfce9bed4653ded98a91776cf64 Signed-off-by: Zongdong Jiao <zongdong.jiao@amlogic.com>
This commit is contained in:
@@ -217,7 +217,7 @@ static ssize_t edid_store(struct device *dev,
|
||||
|
||||
PROCESS_END:
|
||||
kfree(p);
|
||||
return 16;
|
||||
return count;
|
||||
}
|
||||
|
||||
static DEVICE_ATTR_RW(edid);
|
||||
|
||||
Reference in New Issue
Block a user