Re: [PATCH] tools: gpio: gpio-watch: do not clobber errno on read error

From: Bartosz Golaszewski

Date: Tue Nov 17 2026 - 03:19:50 EST



On Fri, 13 Nov 2026 11:57:22 +0800, Gu Bin wrote:
> gpio-watch reads line change events from a gpiochip character device
> and reports a read() error or short read with perror(), which prints
> strerror(errno). If read() fails, say with EINTR, the inner
>
> if (rd != sizeof(chg))
> errno = EIO;
>
> [...]

Applied, thanks!

[1/1] tools: gpio: gpio-watch: do not clobber errno on read error
https://git.kernel.org/brgl/c/845dbb71d620c8f76ed63fa2cd25008194ad3426

Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>