Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Fix a null-deref



details:   https://anonhg.NetBSD.org/src/rev/b345dac181c0
branches:  trunk
changeset: 368204:b345dac181c0
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Jun 28 05:22:13 2022 +0000

description:
Fix a null-deref

lgtm from mlelstv.

Reported-by: syzbot+ec264ed7faf603906b93%syzkaller.appspotmail.com@localhost

diffstat:

 sys/dev/usb/uaudio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5e5e416764b9 -r b345dac181c0 sys/dev/usb/uaudio.c
--- a/sys/dev/usb/uaudio.c      Tue Jun 28 05:19:03 2022 +0000
+++ b/sys/dev/usb/uaudio.c      Tue Jun 28 05:22:13 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uaudio.c,v 1.173 2021/11/13 10:34:00 mlelstv Exp $     */
+/*     $NetBSD: uaudio.c,v 1.174 2022/06/28 05:22:13 skrll Exp $       */
 
 /*
  * Copyright (c) 1999, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.173 2021/11/13 10:34:00 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.174 2022/06/28 05:22:13 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1583,7 +1583,7 @@
                                         asf1d->bDescriptorType, asf1d->bDescriptorSubtype);
                                if (asf1d->bFormatType != FORMAT_TYPE_I) {
                                        aprint_normal_dev(sc->sc_dev,
-                                           "ignored setting with type %d format\n", UGETW(asid->wFormatTag));
+                                           "ignored setting with type %d format\n", asf1d->bFormatType);
                                        return USBD_NORMAL_COMPLETION;
                                }
                                break;



Home | Main Index | Thread Index | Old Index