Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ffs Add a missing goto.



details:   https://anonhg.NetBSD.org/src/rev/027d03f1096e
branches:  trunk
changeset: 808567:027d03f1096e
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat May 23 16:59:13 2015 +0000

description:
Add a missing goto.

(was here before my changes)

ok christos@

diffstat:

 sys/ufs/ffs/ffs_vfsops.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 0f94f455170d -r 027d03f1096e sys/ufs/ffs/ffs_vfsops.c
--- a/sys/ufs/ffs/ffs_vfsops.c  Sat May 23 15:27:55 2015 +0000
+++ b/sys/ufs/ffs/ffs_vfsops.c  Sat May 23 16:59:13 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ffs_vfsops.c,v 1.333 2015/05/19 06:44:42 martin Exp $  */
+/*     $NetBSD: ffs_vfsops.c,v 1.334 2015/05/23 16:59:13 maxv Exp $    */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.333 2015/05/19 06:44:42 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_vfsops.c,v 1.334 2015/05/23 16:59:13 maxv Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ffs.h"
@@ -1332,6 +1332,8 @@
                        DPRINTF("bcount %x != fsize %x", bp->b_bcount,
                            fs->fs_fsize);
                        error = EINVAL;
+                       bset = BC_INVAL;
+                       goto out;
                }
                brelse(bp, BC_INVAL);
                bp = NULL;



Home | Main Index | Thread Index | Old Index