1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Fix a long standing bug in the camq teardown code.

This commit is contained in:
Justin T. Gibbs 1999-08-16 02:23:42 +00:00
parent c6a00c4589
commit f22adc7f6d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=49862

View File

@ -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);
}