[PATCH 4.9 65/88] pipe: fix off-by-one error when checking buffer limits