Tue Sep 18 21:28:22 2018 UTC ()
fix ata_xfer leak on drive probe


(jdolecek)
diff -r1.62 -r1.63 src/sys/dev/ic/ahcisata_core.c

cvs diff -r1.62 -r1.63 src/sys/dev/ic/ahcisata_core.c (expand / switch to context diff)
--- src/sys/dev/ic/ahcisata_core.c 2018/07/09 10:44:44 1.62
+++ src/sys/dev/ic/ahcisata_core.c 2018/09/18 21:28:22 1.63
@@ -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