Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netbt release mbuf on failure of PRU_SEND
details: https://anonhg.NetBSD.org/src/rev/d0366fa3d8a7
branches: trunk
changeset: 331107:d0366fa3d8a7
user: rtr <rtr%NetBSD.org@localhost>
date: Thu Jul 31 15:16:06 2014 +0000
description:
release mbuf on failure of PRU_SEND
diffstat:
sys/netbt/rfcomm_socket.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 091ad4bf1119 -r d0366fa3d8a7 sys/netbt/rfcomm_socket.c
--- a/sys/netbt/rfcomm_socket.c Thu Jul 31 14:41:19 2014 +0000
+++ b/sys/netbt/rfcomm_socket.c Thu Jul 31 15:16:06 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rfcomm_socket.c,v 1.28 2014/07/31 03:39:35 rtr Exp $ */
+/* $NetBSD: rfcomm_socket.c,v 1.29 2014/07/31 15:16:06 rtr Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rfcomm_socket.c,v 1.28 2014/07/31 03:39:35 rtr Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rfcomm_socket.c,v 1.29 2014/07/31 15:16:06 rtr Exp $");
/* load symbolic names */
#ifdef BLUETOOTH_DEBUG
@@ -360,8 +360,10 @@
m_freem(ctl);
m0 = m_copypacket(m, M_DONTWAIT);
- if (m0 == NULL)
- return ENOMEM;
+ if (m0 == NULL) {
+ err = ENOMEM;
+ goto release;
+ }
sbappendstream(&up->so_snd, m);
Home |
Main Index |
Thread Index |
Old Index