[PATCH 5.10 483/529] tracing: Add NULL checks for buffer in ring_buffer_free_read_page()