IB/mlx4: Check correct variable for allocation failure