From cdb452553bc720fdb8d61c73bbefe06adbfb246c Mon Sep 17 00:00:00 2001 From: Zongdong Jiao Date: Mon, 5 Dec 2022 14:53:18 +0800 Subject: [PATCH] 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 --- drivers/media/vout/hdmitx_common/hdmitx_sysfs_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/vout/hdmitx_common/hdmitx_sysfs_common.c b/drivers/media/vout/hdmitx_common/hdmitx_sysfs_common.c index d3e457868..afe6cf559 100644 --- a/drivers/media/vout/hdmitx_common/hdmitx_sysfs_common.c +++ b/drivers/media/vout/hdmitx_common/hdmitx_sysfs_common.c @@ -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);