svn commit: r193062 - user/kmacy/releng_7_2_fcs/sys/boot/i386/libi386

Kip Macy kmacy at FreeBSD.org
Fri May 29 20:41:31 UTC 2009


Author: kmacy
Date: Fri May 29 20:41:30 2009
New Revision: 193062
URL: http://svn.freebsd.org/changeset/base/193062

Log:
  mark invalid on error

Modified:
  user/kmacy/releng_7_2_fcs/sys/boot/i386/libi386/biosdisk.c

Modified: user/kmacy/releng_7_2_fcs/sys/boot/i386/libi386/biosdisk.c
==============================================================================
--- user/kmacy/releng_7_2_fcs/sys/boot/i386/libi386/biosdisk.c	Fri May 29 20:25:03 2009	(r193061)
+++ user/kmacy/releng_7_2_fcs/sys/boot/i386/libi386/biosdisk.c	Fri May 29 20:41:30 2009	(r193062)
@@ -996,8 +996,10 @@ bd_open_gpt(struct open_disk *od, struct
     od->od_boff = gp->gp_start;
 
 out:
-    if (error)
+    if (error) {
 	free(od->od_partitions);
+	od->od_flags &= ~BD_GPTOK;
+    }
     return (error);
 }
 
@@ -1088,7 +1090,7 @@ bd_realstrategy(void *devdata, int rw, d
 
     switch(rw){
     case F_READ:
-	DEBUG("read %d from %d to %p", blks, dblk, buf);
+	DEBUG("read %d from %lld to %p", blks, dblk, buf);
 
 	if (blks && bd_read(od, dblk, blks, buf)) {
 	    DEBUG("read error");


More information about the svn-src-user mailing list