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:
Zongdong Jiao
2022-12-05 14:53:18 +08:00
parent f5e13c4cdc
commit cdb452553b
@@ -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);