Source-Changes-HG archive

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

[src/trunk]: src/sys/net Fix panic in callout_halt (fix typo)



details:   https://anonhg.NetBSD.org/src/rev/d4e521f0f74e
branches:  trunk
changeset: 828408:d4e521f0f74e
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Dec 12 06:26:57 2017 +0000

description:
Fix panic in callout_halt (fix typo)

Reported by wiz@

diffstat:

 sys/net/bpf.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ffca9306d4c7 -r d4e521f0f74e sys/net/bpf.c
--- a/sys/net/bpf.c     Mon Dec 11 23:19:38 2017 +0000
+++ b/sys/net/bpf.c     Tue Dec 12 06:26:57 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bpf.c,v 1.220 2017/11/30 20:25:55 christos Exp $       */
+/*     $NetBSD: bpf.c,v 1.221 2017/12/12 06:26:57 ozaki-r Exp $        */
 
 /*
  * Copyright (c) 1990, 1991, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.220 2017/11/30 20:25:55 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.221 2017/12/12 06:26:57 ozaki-r Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_bpf.h"
@@ -662,7 +662,7 @@
 
        mutex_enter(d->bd_mtx);
        if (d->bd_state == BPF_WAITING)
-               callout_halt(&d->bd_callout, d->bd_buf_mtx);
+               callout_halt(&d->bd_callout, d->bd_mtx);
        timed_out = (d->bd_state == BPF_TIMED_OUT);
        d->bd_state = BPF_IDLE;
        mutex_exit(d->bd_mtx);



Home | Main Index | Thread Index | Old Index