aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2006-04-01 15:15:05 +0000
committerRobert Watson <rwatson@FreeBSD.org>2006-04-01 15:15:05 +0000
commitac45e92ff2195eb1addc4debd946c83ac6baa356 (patch)
tree9714c8659826516cd802bd3b0a45d778b7ebb1a6 /sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c
parentc66235a6abaa07e0397eb5b96620ea92f1170611 (diff)
Change protocol switch pru_abort() API so that it returns void rather
than an int, as an error here is not meaningful. Modify soabort() to unconditionally free the socket on the return of pru_abort(), and modify most protocols to no longer conditionally free the socket, since the caller will do this. This commit likely leaves parts of netinet and netinet6 in a situation where they may panic or leak memory, as they have not are not fully updated by this commit. This will be corrected shortly in followup commits to these components. MFC after: 3 months
Notes
Notes: svn path=/head/; revision=157366
Diffstat (limited to 'sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c')
-rw-r--r--sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c
index 6afa9187ca18..d89bdafa0fbf 100644
--- a/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c
+++ b/sys/netgraph/bluetooth/socket/ng_btsocket_hci_raw.c
@@ -872,10 +872,10 @@ ng_btsocket_hci_raw_init(void)
* Abort connection on socket
*/
-int
+void
ng_btsocket_hci_raw_abort(struct socket *so)
{
- return (ng_btsocket_hci_raw_detach(so));
+ ng_btsocket_hci_raw_detach(so);
} /* ng_btsocket_hci_raw_abort */
/*