svn commit: r303506 - head/sys/ofed/drivers/infiniband/ulp/sdp
Mark Johnston
markj at FreeBSD.org
Fri Jul 29 20:36:03 UTC 2016
Author: markj
Date: Fri Jul 29 20:36:01 2016
New Revision: 303506
URL: https://svnweb.freebsd.org/changeset/base/303506
Log:
sdp: Destroy the PCB lock before freeing to the zone.
Sponsored by: EMC / Isilon Storage Division
Modified:
head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c
Modified: head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c
==============================================================================
--- head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c Fri Jul 29 20:35:04 2016 (r303505)
+++ head/sys/ofed/drivers/infiniband/ulp/sdp/sdp_main.c Fri Jul 29 20:36:01 2016 (r303506)
@@ -176,8 +176,8 @@ sdp_pcbfree(struct sdp_sock *ssk)
sdp_tx_ring_destroy(ssk);
sdp_rx_ring_destroy(ssk);
rw_destroy(&ssk->rx_ring.destroyed_lock);
- uma_zfree(sdp_zone, ssk);
rw_destroy(&ssk->lock);
+ uma_zfree(sdp_zone, ssk);
}
/*
More information about the svn-src-all
mailing list