On Tue, 30 Apr 2024 at 22:31, Andrii Nakryiko <andrii@xxxxxxxxxx> wrote: > > Add INT_MAX check to ring_buffer__consume_n(). We do the similar check > to handle int return result of all these ring buffer APIs in other APIs > and ring_buffer__consume_n() is missing one. This patch fixes this > omission. > > Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > --- Acked-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>