[PATCH AUTOSEL 6.13 34/34] ring-buffer: Make reading page consistent with the code logic