Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic fix ata_xfer leak on drive probe
details: https://anonhg.NetBSD.org/src/rev/d7410d5a8bbc
branches: trunk
changeset: 433522:d7410d5a8bbc
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Sep 18 21:28:22 2018 +0000
description:
fix ata_xfer leak on drive probe
diffstat:
sys/dev/ic/ahcisata_core.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r cf2504192bfd -r d7410d5a8bbc sys/dev/ic/ahcisata_core.c
--- a/sys/dev/ic/ahcisata_core.c Tue Sep 18 19:19:45 2018 +0000
+++ b/sys/dev/ic/ahcisata_core.c Tue Sep 18 21:28:22 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ahcisata_core.c,v 1.62 2018/07/09 10:44:44 kamil Exp $ */
+/* $NetBSD: ahcisata_core.c,v 1.63 2018/09/18 21:28:22 jdolecek Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.62 2018/07/09 10:44:44 kamil Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.63 2018/09/18 21:28:22 jdolecek Exp $");
#include <sys/types.h>
#include <sys/malloc.h>
@@ -995,6 +995,8 @@
break;
}
ata_channel_unlock(chp);
+
+ ata_free_xfer(chp, xfer);
}
static void
Home |
Main Index |
Thread Index |
Old Index