svn commit: r256887 - head/sys/dev/aha

Alexander Motin mav at FreeBSD.org
Tue Oct 22 12:42:49 UTC 2013


Author: mav
Date: Tue Oct 22 12:42:49 2013
New Revision: 256887
URL: http://svnweb.freebsd.org/changeset/base/256887

Log:
  Fix memory and references leak due to unfreed path.
  
  Coverity CID:	1109817

Modified:
  head/sys/dev/aha/aha.c

Modified: head/sys/dev/aha/aha.c
==============================================================================
--- head/sys/dev/aha/aha.c	Tue Oct 22 11:56:46 2013	(r256886)
+++ head/sys/dev/aha/aha.c	Tue Oct 22 12:42:49 2013	(r256887)
@@ -1168,8 +1168,10 @@ ahadone(struct aha_softc *aha, struct ah
 		    cam_sim_path(aha->sim), accb->hccb.target,
 		    CAM_LUN_WILDCARD);
 
-		if (error == CAM_REQ_CMP)
+		if (error == CAM_REQ_CMP) {
 			xpt_async(AC_SENT_BDR, path, NULL);
+			xpt_free_path(path);
+		}
 
 		ccb_h = LIST_FIRST(&aha->pending_ccbs);
 		while (ccb_h != NULL) {


More information about the svn-src-head mailing list