Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci vioif(4): fix missing error handling



details:   https://anonhg.NetBSD.org/src/rev/195b1841fbd8
branches:  trunk
changeset: 364423:195b1841fbd8
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Thu Mar 24 07:51:14 2022 +0000

description:
vioif(4): fix missing error handling

diffstat:

 sys/dev/pci/if_vioif.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r da8e9f4414fa -r 195b1841fbd8 sys/dev/pci/if_vioif.c
--- a/sys/dev/pci/if_vioif.c    Thu Mar 24 07:47:50 2022 +0000
+++ b/sys/dev/pci/if_vioif.c    Thu Mar 24 07:51:14 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vioif.c,v 1.72 2022/03/24 07:47:50 yamaguchi Exp $  */
+/*     $NetBSD: if_vioif.c,v 1.73 2022/03/24 07:51:14 yamaguchi Exp $  */
 
 /*
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.72 2022/03/24 07:47:50 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vioif.c,v 1.73 2022/03/24 07:51:14 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_net_mpsafe.h"
@@ -745,6 +745,8 @@
                    sizeof(*ctrlq->ctrlq_mac_tbl_mc)
                    + ETHER_ADDR_LEN * VIRTIO_NET_CTRL_MAC_MAXENTRIES, 1,
                    "multicast MAC address filter command");
+               if (r != 0)
+                       goto err_reqs;
        }
 
        return 0;



Home | Main Index | Thread Index | Old Index