[DRBD-cvs] svn commit by phil - r2753 - trunk/drbd - This fixes a minor issue, reported by Gerrit Bruchh?\19

drbd-cvs at lists.linbit.com drbd-cvs at lists.linbit.com
Wed Feb 14 15:48:09 CET 2007


Author: phil
Date: 2007-02-14 15:48:09 +0100 (Wed, 14 Feb 2007)
New Revision: 2753

Modified:
   trunk/drbd/drbd_actlog.c
Log:
This fixes a minor issue, reported by Gerrit Bruchh?\195?\164user



Modified: trunk/drbd/drbd_actlog.c
===================================================================
--- trunk/drbd/drbd_actlog.c	2007-02-13 18:40:56 UTC (rev 2752)
+++ trunk/drbd/drbd_actlog.c	2007-02-14 14:48:09 UTC (rev 2753)
@@ -44,7 +44,8 @@
 
 	bio->bi_bdev = bdev->md_bdev;
 	bio->bi_sector = sector;
-	bio_add_page(bio, page, size, 0);
+	ok = bio_add_page(bio, page, size, 0);
+	if(!ok) goto out;
 	init_completion(&event);
 	bio->bi_private = &event;
 	bio->bi_end_io = drbd_md_io_complete;
@@ -62,8 +63,8 @@
 #endif
 	}
 	wait_for_completion(&event);
-
 	ok = test_bit(BIO_UPTODATE, &bio->bi_flags);
+ out:
 	bio_put(bio);
 	return ok;
 }



More information about the drbd-cvs mailing list