[Linux-stable-mirror] [PATCH v2 4/7] pipe: fix off-by-one error when checking buffer limits