[PATCH 5.10 323/352] tracing: Fix overflow in get_free_elt()