Deleted Added
full compact
ng_l2cap_cmds.c (168009) ng_l2cap_cmds.c (250460)
1/*
2 * ng_l2cap_cmds.c
3 */
4
5/*-
6 * Copyright (c) Maksim Yevmenkin <m_evmenkin@yahoo.com>
7 * All rights reserved.
8 *

--- 14 unchanged lines hidden (view full) ---

23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * $Id: ng_l2cap_cmds.c,v 1.2 2003/09/08 19:11:45 max Exp $
1/*
2 * ng_l2cap_cmds.c
3 */
4
5/*-
6 * Copyright (c) Maksim Yevmenkin <m_evmenkin@yahoo.com>
7 * All rights reserved.
8 *

--- 14 unchanged lines hidden (view full) ---

23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * $Id: ng_l2cap_cmds.c,v 1.2 2003/09/08 19:11:45 max Exp $
31 * $FreeBSD: head/sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c 168009 2007-03-28 21:25:56Z emax $
31 * $FreeBSD: head/sys/netgraph/bluetooth/l2cap/ng_l2cap_cmds.c 250460 2013-05-10 16:41:26Z eadler $
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/endian.h>
38#include <sys/malloc.h>
39#include <sys/mbuf.h>

--- 261 unchanged lines hidden (view full) ---

301 if (cmd->ch != NULL)
302 ng_l2cap_free_chan(cmd->ch);
303
304 ng_l2cap_free_cmd(cmd);
305 }
306
307 /*
308 * There still might be channels (in OPEN state?) that
32 */
33
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/kernel.h>
37#include <sys/endian.h>
38#include <sys/malloc.h>
39#include <sys/mbuf.h>

--- 261 unchanged lines hidden (view full) ---

301 if (cmd->ch != NULL)
302 ng_l2cap_free_chan(cmd->ch);
303
304 ng_l2cap_free_cmd(cmd);
305 }
306
307 /*
308 * There still might be channels (in OPEN state?) that
309 * did not submit any commands, so diconnect them
309 * did not submit any commands, so disconnect them
310 */
311
312 LIST_FOREACH(ch, &l2cap->chan_list, next)
313 if (ch->con == con)
314 ng_l2cap_l2ca_discon_ind(ch);
315
316 /* Free connection descriptor */
317 ng_l2cap_free_con(con);

--- 81 unchanged lines hidden ---
310 */
311
312 LIST_FOREACH(ch, &l2cap->chan_list, next)
313 if (ch->con == con)
314 ng_l2cap_l2ca_discon_ind(ch);
315
316 /* Free connection descriptor */
317 ng_l2cap_free_con(con);

--- 81 unchanged lines hidden ---