[PATCH] kfifo: do not allocate a fifo smaller than 2 bytes
Sascha Hauer
s.hauer at pengutronix.de
Fri Apr 17 03:45:10 PDT 2026
On Fri, 17 Apr 2026 11:36:59 +0200, Ahmad Fatoum wrote:
> Linux also refuses allocation of such FIFOs and if such argument indeed
> passes, it's most likely a bug, so exit early.
>
> All users of kfifo_init in barebox currently pass a fixed larger
> power-of-two argument, except for TFTP, which calculates it dynamically,
> but this is fixed separately. This patch is thus just to future proof.
>
> [...]
Applied, thanks!
[1/1] kfifo: do not allocate a fifo smaller than 2 bytes
https://git.pengutronix.de/cgit/barebox/commit/?id=ae4696c16996 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list