Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Pass up bus_dma error from usb_block_allocmem ra...



details:   https://anonhg.NetBSD.org/src/rev/b45c3792be81
branches:  trunk
changeset: 1029084:b45c3792be81
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Dec 21 09:25:17 2021 +0000

description:
Pass up bus_dma error from usb_block_allocmem rather than always returning
USBD_NOMEM on error.

diffstat:

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

diffs (27 lines):

diff -r e00682176572 -r b45c3792be81 sys/dev/usb/usb_mem.c
--- a/sys/dev/usb/usb_mem.c     Tue Dec 21 09:23:41 2021 +0000
+++ b/sys/dev/usb/usb_mem.c     Tue Dec 21 09:25:17 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb_mem.c,v 1.82 2021/12/21 09:23:41 skrll Exp $       */
+/*     $NetBSD: usb_mem.c,v 1.83 2021/12/21 09:25:17 skrll Exp $       */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb_mem.c,v 1.82 2021/12/21 09:23:41 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_mem.c,v 1.83 2021/12/21 09:25:17 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -210,7 +210,7 @@
        kmem_free(b, sizeof(*b));
        mutex_enter(&usb_blk_lock);
 
-       return USBD_NOMEM;
+       return error;
 }
 
 #if 0



Home | Main Index | Thread Index | Old Index