]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Do not override an error from uiomove() with (non-)error result from
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 2 Jul 2012 09:53:08 +0000 (09:53 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 2 Jul 2012 09:53:08 +0000 (09:53 +0000)
commit9d232eec30a058c1c21b4bf254a5b471605dac48
treedbd1c8f38453a30da2102b65b21496be9c1efaaa
parent46c13bb43f7c9d873b1accb1f48ba56a63f1fe10
Do not override an error from uiomove() with (non-)error result from
bwrite().  VFS needs to know about EFAULT from uiomove() and does not
care much that partially filled block writeback after EFAULT was
successfull.  Early return without error causes short write to be
reported to usermode.

Reported and tested by: andreast
MFC after: 3 weeks
sys/fs/nfsclient/nfs_clbio.c