mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Fix a long standing bug in the camq teardown code.
This commit is contained in:
parent
c6a00c4589
commit
f22adc7f6d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49862
@ -25,7 +25,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: cam_queue.c,v 1.2 1999/04/07 22:57:48 gibbs Exp $
|
||||
* $Id: cam_queue.c,v 1.3 1999/04/19 21:26:08 gibbs Exp $
|
||||
*/
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -242,8 +242,8 @@ cam_devq_init(struct cam_devq *devq, int devices, int openings)
|
||||
void
|
||||
cam_devq_free(struct cam_devq *devq)
|
||||
{
|
||||
camq_free(&devq->alloc_queue);
|
||||
camq_free(&devq->send_queue);
|
||||
camq_fini(&devq->alloc_queue);
|
||||
camq_fini(&devq->send_queue);
|
||||
free(devq, M_DEVBUF);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user