Linux: Handle llseek failure
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Mon, 25 Jan 2010 00:02:11 +0000 (00:02 +0000)
committerDerrick Brashear <shadow|account-1000005@unknown>
Mon, 25 Jan 2010 05:39:54 +0000 (21:39 -0800)
commit7a5cee30cc5f0e6d5780387633ce2b46608fd5fb
treec4b3e200cf4c42275e934293591889ed15228440
parenta16e6f396464bd860d08b9fec1f37f96ea8ac30a
Linux: Handle llseek failure

If llseek fails, then we return immediately, potentially leaving the
wrong address space configured for this process, and without resetting
the processes saved limits.

Fix this by creating a common exit point for osi_rdwr, and using it.

Change-Id: Ifff8cb0155f92a4130d21828d5ee2d2a55c09195
Reviewed-on: http://gerrit.openafs.org/1155
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/LINUX/osi_file.c