Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jan 2008 16:14:27 GMT
From:      Scott Long <scottl@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 133661 for review
Message-ID:  <200801191614.m0JGERPj051900@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133661

Change 133661 by scottl@scottl-ix on 2008/01/19 16:13:55

	Fix a memory leak created by the last fix.

Affected files ...

.. //depot/projects/xen31-xenbus/sys/dev/xen/blkfront/blkfront.c#4 edit

Differences ...

==== //depot/projects/xen31-xenbus/sys/dev/xen/blkfront/blkfront.c#4 (text+ko) ====

@@ -826,10 +826,9 @@
 		switch (bret->operation) {
 		case BLKIF_OP_READ:
 			/* had an unaligned buffer that needs to be copied */
-			if (bp->bio_driver1) {
+			if (bp->bio_driver1)
 				bcopy(bp->bio_driver2, bp->bio_data, bp->bio_bcount);
-				bp->bio_driver1 = NULL;
-			}
+			/* FALLTHROUGH */
 		case BLKIF_OP_WRITE:
 
 			/* free the copy buffer */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801191614.m0JGERPj051900>