From: Matthew Dillon Date: Fri, 31 Dec 2004 22:30:19 +0000 (+0000) Subject: Restore b_data prior to calling relpbuf(). This isn't really necessary but X-Git-Tag: v2.0.1~9336 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/d094eee86635d6132dd13b9adc7095f62147c472 Restore b_data prior to calling relpbuf(). This isn't really necessary but it's a good cleanup to do in case the pbuf API changes later on. Submitted-by: Found in Chris Pressey's tree, source is a mystery! --- diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index 41753ff024..cc79a5a706 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -17,7 +17,7 @@ * are met. * * $FreeBSD: src/sys/kern/kern_physio.c,v 1.46.2.4 2003/11/14 09:51:47 simokawa Exp $ - * $DragonFly: src/sys/kern/kern_physio.c,v 1.8 2004/02/16 20:11:20 dillon Exp $ + * $DragonFly: src/sys/kern/kern_physio.c,v 1.9 2004/12/31 22:30:19 dillon Exp $ */ #include @@ -143,6 +143,7 @@ physio(dev_t dev, struct uio *uio, int ioflag) } } doerror: + bp->b_data = sa; relpbuf(bp, NULL); return (error); }