Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Mar 2019 19:41:08 +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-12@freebsd.org
Subject:   svn commit: r344821 - stable/12/sys/geom/concat
Message-ID:  <201903051941.x25Jf8gd081092@repo.freebsd.org>

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

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

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

Modified: stable/12/sys/geom/concat/g_concat.c
==============================================================================
--- stable/12/sys/geom/concat/g_concat.c	Tue Mar  5 19:39:13 2019	(r344820)
+++ stable/12/sys/geom/concat/g_concat.c	Tue Mar  5 19:41:08 2019	(r344821)
@@ -238,8 +238,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.x25Jf8gd081092>