From aa9e985aed95e3da55fcfa81a0386dfeefa8299d Mon Sep 17 00:00:00 2001 From: Maksim Yevmenkin Date: Wed, 6 Apr 2005 20:54:05 +0000 Subject: [PATCH] Remove PR_ATOMIC flag in ng_btsocket_protosw[] for BLUETOOTH_PROTO_RFCOMM protocol. RFCOMM is a SOCK_STREAM protocol not SOCK_SEQPACKET. This was a serious bug caused by cut-and-paste. I'm surprised it did not bite me before. Dunce hat goes to me. MFC after: 3 days --- sys/netgraph/bluetooth/socket/ng_btsocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket.c b/sys/netgraph/bluetooth/socket/ng_btsocket.c index 5c977d89f972..9b8fdd6c52ba 100644 --- a/sys/netgraph/bluetooth/socket/ng_btsocket.c +++ b/sys/netgraph/bluetooth/socket/ng_btsocket.c @@ -182,7 +182,7 @@ static struct protosw ng_btsocket_protosw[] = { SOCK_STREAM, /* protocol type */ &ng_btsocket_domain, /* backpointer to domain */ BLUETOOTH_PROTO_RFCOMM, /* protocol */ - PR_ATOMIC | PR_CONNREQUIRED, /* flags */ + PR_CONNREQUIRED, /* flags */ NULL, NULL, NULL, /* input, output, ctlinput */ ng_btsocket_rfcomm_ctloutput, /* ctloutput */ NULL, /* ousrreq() */