Add comment describing why we need to clear the buffer if uiomove()
authormillert <millert@openbsd.org>
Sat, 13 Jan 2018 15:56:02 +0000 (15:56 +0000)
committermillert <millert@openbsd.org>
Sat, 13 Jan 2018 15:56:02 +0000 (15:56 +0000)
commit0d60ec82edfa3aae0b5ba48e489151582f0150a6
treedab8505ae3cd4ba24dbc564cc14296aed4d55bd7
parentf002f3d2ae570c744062d2acd20c4604d25475c6
Add comment describing why we need to clear the buffer if uiomove()
fails, adapted from FreeBSD.  Also avoid clearing the buffer if it
was cleared when allocated.  OK deraadt@ otto@
sys/ufs/ffs/ffs_vnops.c