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