Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2019 19:41:32 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r344822 - stable/11/sys/geom/concat
Message-ID:  <201903051941.x25JfWEv081900@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Tue Mar  5 19:41:32 2019
New Revision: 344822
URL: https://svnweb.freebsd.org/changeset/base/344822

Log:
  MFC r344600:
  Add a missing return statement to g_concat_kernel_dump().

Modified:
  stable/11/sys/geom/concat/g_concat.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/geom/concat/g_concat.c
==============================================================================
--- stable/11/sys/geom/concat/g_concat.c	Tue Mar  5 19:41:08 2019	(r344821)
+++ stable/11/sys/geom/concat/g_concat.c	Tue Mar  5 19:41:32 2019	(r344822)
@@ -219,8 +219,10 @@ g_concat_kernel_dump(struct bio *bp)
 		    sc->sc_disks[i].d_end > gkd->offset)
 			break;
 	}
-	if (i == sc->sc_ndisks)
+	if (i == sc->sc_ndisks) {
 		g_io_deliver(bp, EOPNOTSUPP);
+		return;
+	}
 	disk = &sc->sc_disks[i];
 	gkd->offset -= disk->d_start;
 	if (gkd->length > disk->d_end - disk->d_start - gkd->offset)



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