Module Name: src Committed By: riastradh Date: Tue Mar 29 06:59:19 UTC 2022
Modified Files: src/sys/dev/usb: uhid.c Log Message: uhid(4): Make sure error is initialized in uhidkqfilter. To generate a diff of this commit: cvs rdiff -u -r1.123 -r1.124 src/sys/dev/usb/uhid.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/uhid.c diff -u src/sys/dev/usb/uhid.c:1.123 src/sys/dev/usb/uhid.c:1.124 --- src/sys/dev/usb/uhid.c:1.123 Mon Mar 28 12:44:17 2022 +++ src/sys/dev/usb/uhid.c Tue Mar 29 06:59:19 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: uhid.c,v 1.123 2022/03/28 12:44:17 riastradh Exp $ */ +/* $NetBSD: uhid.c,v 1.124 2022/03/29 06:59:19 riastradh Exp $ */ /* * Copyright (c) 1998, 2004, 2008, 2012 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uhid.c,v 1.123 2022/03/28 12:44:17 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhid.c,v 1.124 2022/03/29 06:59:19 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_compat_netbsd.h" @@ -753,7 +753,7 @@ static int uhidkqfilter(dev_t dev, struct knote *kn) { struct uhid_softc *sc = device_lookup_private(&uhid_cd, UHIDUNIT(dev)); - int error; + int error = 0; switch (kn->kn_filter) { case EVFILT_READ: