summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdi_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/usbdi_util.c')
-rw-r--r--sys/dev/usb/usbdi_util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/usb/usbdi_util.c b/sys/dev/usb/usbdi_util.c
index ff48fd7d56a6..3c5b10408fd0 100644
--- a/sys/dev/usb/usbdi_util.c
+++ b/sys/dev/usb/usbdi_util.c
@@ -460,6 +460,7 @@ usbd_alloc_report_desc(ifc, descp, sizep, mem)
*sizep, *descp);
if (err) {
free(*descp, mem);
+ *descp = NULL;
return (err);
}
return (USBD_NORMAL_COMPLETION);