[PATCH] x86: Fix potential overflow in perfctr reservation