summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Lytkin <iprintercanon@gmail.com>2026-02-08 01:05:23 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-23 17:38:15 +0300
commitf80760f5fc02c1ab384a974097964aa8e6720331 (patch)
tree4f64b61d88a9566517af977dd457191cf3711731
parentfbab250eb51d6d6a528ba58e884185c83f796e4c (diff)
downloadlinux-f80760f5fc02c1ab384a974097964aa8e6720331.tar.xz
staging: fbtft: fix unchecked write return value in fb_agm1264k-fl
The second call to par->fbtftops.write() does not capture the return value, so the subsequent error check tests a stale value from the first write call. Add the missing assignment so the error check applies to the correct write operation. Signed-off-by: Artem Lytkin <iprintercanon@gmail.com> Acked-by: Andy Shevchenko <andriy.shevchenko@intel.com> Link: https://patch.msgid.link/20260207220523.3816-1-iprintercanon@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/fbtft/fb_agm1264k-fl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fbtft/fb_agm1264k-fl.c b/drivers/staging/fbtft/fb_agm1264k-fl.c
index af2dbebefc72..6fc8f4e9c814 100644
--- a/drivers/staging/fbtft/fb_agm1264k-fl.c
+++ b/drivers/staging/fbtft/fb_agm1264k-fl.c
@@ -376,7 +376,7 @@ static int write_vmem(struct fbtft_par *par, size_t offset, size_t len)
/* write bitmap */
gpiod_set_value(par->RS, 1); /* RS->1 (data mode) */
- par->fbtftops.write(par, buf, len);
+ ret = par->fbtftops.write(par, buf, len);
if (ret < 0)
dev_err(par->info->device,
"write failed and returned: %d\n",