PERFORCE change 133661 for review
Scott Long
scottl at FreeBSD.org
Sat Jan 19 08:14:27 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133661
Change 133661 by scottl at 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 */
More information about the p4-projects
mailing list