Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/bluetooth free mbuf on failure (Brainy)
details: https://anonhg.NetBSD.org/src/rev/21e62d35134b
branches: trunk
changeset: 337791:21e62d35134b
user: christos <christos%NetBSD.org@localhost>
date: Mon Apr 27 17:36:41 2015 +0000
description:
free mbuf on failure (Brainy)
diffstat:
sys/dev/bluetooth/bcsp.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r b02829d8dc16 -r 21e62d35134b sys/dev/bluetooth/bcsp.c
--- a/sys/dev/bluetooth/bcsp.c Mon Apr 27 17:34:51 2015 +0000
+++ b/sys/dev/bluetooth/bcsp.c Mon Apr 27 17:36:41 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcsp.c,v 1.25 2014/11/16 16:20:00 ozaki-r Exp $ */
+/* $NetBSD: bcsp.c,v 1.26 2015/04/27 17:36:41 christos Exp $ */
/*
* Copyright (c) 2007 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcsp.c,v 1.25 2014/11/16 16:20:00 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcsp.c,v 1.26 2015/04/27 17:36:41 christos Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -1442,6 +1442,7 @@
m->m_pkthdr.len = m->m_len = 0;
m_copyback(m, 0, sizeof(sync), sync);
if (!bcsp_tx_unreliable_pkt(sc, m, BCSP_CHANNEL_LE)) {
+ m_freem(m);
aprint_error_dev(sc->sc_dev,
"le-packet transmit failed\n");
return EINVAL;
Home |
Main Index |
Thread Index |
Old Index