Fix bounds check in ipp am: 239ddbfc0c

Change-Id: I8960f37cc119d72966d50c53ab2b3190a830dc3b