mm, swap: bounds check swap_info array accesses to avoid NULL derefs