Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb initialize buf to NULL for error branch on line 532



details:   https://anonhg.NetBSD.org/src/rev/53da90477dcf
branches:  trunk
changeset: 815438:53da90477dcf
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue May 17 11:37:50 2016 +0000

description:
initialize buf to NULL for error branch on line 532

diffstat:

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

diffs (27 lines):

diff -r 7b50b3590955 -r 53da90477dcf sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c       Tue May 17 10:05:31 2016 +0000
+++ b/sys/dev/usb/usbdi.c       Tue May 17 11:37:50 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbdi.c,v 1.170 2016/05/06 05:19:32 skrll Exp $        */
+/*     $NetBSD: usbdi.c,v 1.171 2016/05/17 11:37:50 pooka Exp $        */
 
 /*
  * Copyright (c) 1998, 2012, 2015 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.170 2016/05/06 05:19:32 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.171 2016/05/17 11:37:50 pooka Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -508,7 +508,7 @@
     unsigned int nframes, struct usbd_xfer **xp)
 {
        KASSERT(xp != NULL);
-       void *buf;
+       void *buf = NULL;
 
        struct usbd_xfer *xfer = usbd_alloc_xfer(pipe->up_dev, nframes);
        if (xfer == NULL)



Home | Main Index | Thread Index | Old Index