Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Mar 2020 06:21:00 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r358663 - head/sys/cam
Message-ID:  <202003050621.0256L0av054165@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Thu Mar  5 06:21:00 2020
New Revision: 358663
URL: https://svnweb.freebsd.org/changeset/base/358663

Log:
  All paths lead to xpt_done, so move it after the switch.

Modified:
  head/sys/cam/cam_xpt.c

Modified: head/sys/cam/cam_xpt.c
==============================================================================
--- head/sys/cam/cam_xpt.c	Thu Mar  5 06:20:17 2020	(r358662)
+++ head/sys/cam/cam_xpt.c	Thu Mar  5 06:21:00 2020	(r358663)
@@ -5326,14 +5326,13 @@ xptaction(struct cam_sim *sim, union ccb *work_ccb)
 		cpi->transport = XPORT_UNSPECIFIED;
 		cpi->transport_version = XPORT_VERSION_UNSPECIFIED;
 		cpi->ccb_h.status = CAM_REQ_CMP;
-		xpt_done(work_ccb);
 		break;
 	}
 	default:
 		work_ccb->ccb_h.status = CAM_REQ_INVALID;
-		xpt_done(work_ccb);
 		break;
 	}
+	xpt_done(work_ccb);
 }
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003050621.0256L0av054165>