diff options
| author | pooka <pooka@NetBSD.org> | 2016-05-17 11:37:50 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2016-05-17 11:37:50 +0000 |
| commit | 8fdbe6e6d70d807c35f7aa4e0600a062837df500 (patch) | |
| tree | df0a092fb918906ce08397be62f3a6a5822256c3 /sys | |
| parent | 0a99a93c69af8f69b5ba47225287f8315d9933ad (diff) | |
initialize buf to NULL for error branch on line 532
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/usb/usbdi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c index f2607cfdc71..2131e3b9930 100644 --- a/sys/dev/usb/usbdi.c +++ b/sys/dev/usb/usbdi.c @@ -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 @@ usbd_create_xfer(struct usbd_pipe *pipe, size_t len, unsigned int flags, 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) |
