Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/adosfs fix obvious typo in error handling - buf error...



details:   https://anonhg.NetBSD.org/src/rev/639a14d55d16
branches:  trunk
changeset: 971412:639a14d55d16
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Thu Apr 23 09:58:37 2020 +0000

description:
fix obvious typo in error handling - buf error should go to b_error

diffstat:

 sys/fs/adosfs/advnops.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4a4b4c8c853a -r 639a14d55d16 sys/fs/adosfs/advnops.c
--- a/sys/fs/adosfs/advnops.c   Thu Apr 23 09:47:31 2020 +0000
+++ b/sys/fs/adosfs/advnops.c   Thu Apr 23 09:58:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: advnops.c,v 1.51 2020/01/17 20:08:07 ad Exp $  */
+/*     $NetBSD: advnops.c,v 1.52 2020/04/23 09:58:37 jdolecek Exp $    */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: advnops.c,v 1.51 2020/01/17 20:08:07 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: advnops.c,v 1.52 2020/04/23 09:58:37 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -387,7 +387,7 @@
        if (bp->b_blkno == bp->b_lblkno) {
                error = VOP_BMAP(vp, bp->b_lblkno, NULL, &bp->b_blkno, NULL);
                if (error) {
-                       bp->b_flags = error;
+                       bp->b_error = error;
                        biodone(bp);
                        goto reterr;
                }



Home | Main Index | Thread Index | Old Index