Module Name: src Committed By: skrll Date: Tue Jun 28 05:22:13 UTC 2022
Modified Files: src/sys/dev/usb: uaudio.c Log Message: Fix a null-deref lgtm from mlelstv. Reported-by: syzbot+ec264ed7faf603906...@syzkaller.appspotmail.com To generate a diff of this commit: cvs rdiff -u -r1.173 -r1.174 src/sys/dev/usb/uaudio.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/uaudio.c diff -u src/sys/dev/usb/uaudio.c:1.173 src/sys/dev/usb/uaudio.c:1.174 --- src/sys/dev/usb/uaudio.c:1.173 Sat Nov 13 10:34:00 2021 +++ src/sys/dev/usb/uaudio.c Tue Jun 28 05:22:13 2022 @@ -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 @@ uaudio_process_as(struct uaudio_softc *s 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;