Module Name:    src
Committed By:   joerg
Date:           Mon Apr 25 20:06:51 UTC 2016

Modified Files:
        src/sys/dev/usb: uhci.c

Log Message:
Don't use uninitialized data variable when len == 0.


To generate a diff of this commit:
cvs rdiff -u -r1.269 -r1.270 src/sys/dev/usb/uhci.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/uhci.c
diff -u src/sys/dev/usb/uhci.c:1.269 src/sys/dev/usb/uhci.c:1.270
--- src/sys/dev/usb/uhci.c:1.269	Sat Apr 23 13:14:52 2016
+++ src/sys/dev/usb/uhci.c	Mon Apr 25 20:06:51 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: uhci.c,v 1.269 2016/04/23 13:14:52 skrll Exp $	*/
+/*	$NetBSD: uhci.c,v 1.270 2016/04/25 20:06:51 joerg Exp $	*/
 
 /*
  * Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.269 2016/04/23 13:14:52 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.270 2016/04/25 20:06:51 joerg Exp $");
 
 #include "opt_usb.h"
 
@@ -2496,7 +2496,7 @@ uhci_device_ctrl_init(struct usbd_xfer *
 	usb_device_request_t *req = &xfer->ux_request;
 	struct usbd_device *dev = upipe->pipe.up_dev;
 	uhci_softc_t *sc = dev->ud_bus->ub_hcpriv;
-	uhci_soft_td_t *data;
+	uhci_soft_td_t *data = NULL;
 	int len;
 	usbd_status err;
 	int isread;

Reply via email to