[PATCH 3.16 213/410] pipe: fix off-by-one error when checking buffer limits