Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/jdolecek-ncq]: src/sys/dev/ic Use ata_queue_free() instead of free() to ...
details: https://anonhg.NetBSD.org/src/rev/fb604ebc5a56
branches: jdolecek-ncq
changeset: 352757:fb604ebc5a56
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Tue Aug 15 20:12:28 2017 +0000
description:
Use ata_queue_free() instead of free() to deallocate chp->ch_queue during detach.
diffstat:
sys/dev/ic/siisata.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 09e343c49c65 -r fb604ebc5a56 sys/dev/ic/siisata.c
--- a/sys/dev/ic/siisata.c Tue Aug 15 11:21:32 2017 +0000
+++ b/sys/dev/ic/siisata.c Tue Aug 15 20:12:28 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siisata.c,v 1.30.4.35 2017/08/12 22:12:04 jdolecek Exp $ */
+/* $NetBSD: siisata.c,v 1.30.4.36 2017/08/15 20:12:28 jakllsch Exp $ */
/* from ahcisata_core.c */
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.30.4.35 2017/08/12 22:12:04 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.30.4.36 2017/08/15 20:12:28 jakllsch Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -426,7 +426,8 @@
bus_dmamem_free(sc->sc_dmat,
&schp->sch_prb_seg, schp->sch_prb_nseg);
- free(chp->ch_queue, M_DEVBUF);
+ ata_queue_free(chp->ch_queue);
+ chp->ch_queue = NULL;
chp->atabus = NULL;
ata_channel_detach(chp);
Home |
Main Index |
Thread Index |
Old Index