Module Name: src
Committed By: jdolecek
Date: Tue Sep 18 21:28:22 UTC 2018
Modified Files:
src/sys/dev/ic: ahcisata_core.c
Log Message:
fix ata_xfer leak on drive probe
To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/dev/ic/ahcisata_core.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/ahcisata_core.c
diff -u src/sys/dev/ic/ahcisata_core.c:1.62 src/sys/dev/ic/ahcisata_core.c:1.63
--- src/sys/dev/ic/ahcisata_core.c:1.62 Mon Jul 9 10:44:44 2018
+++ src/sys/dev/ic/ahcisata_core.c Tue Sep 18 21:28:22 2018
@@ -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 @@ ahci_probe_drive(struct ata_channel *chp
break;
}
ata_channel_unlock(chp);
+
+ ata_free_xfer(chp, xfer);
}
static void