[PATCH 5.1 23/55] x86/resctrl: Prevent possible overrun during bitmap operations