Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2019 19:17:44 +0000 (UTC)
From:      Alexander Motin <mav@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: r350995 - stable/12/sys/dev/nvd
Message-ID:  <201908131917.x7DJHipR048232@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Tue Aug 13 19:17:44 2019
New Revision: 350995
URL: https://svnweb.freebsd.org/changeset/base/350995

Log:
  MFC r350961: Missed part of r350523.

Modified:
  stable/12/sys/dev/nvd/nvd.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/nvd/nvd.c
==============================================================================
--- stable/12/sys/dev/nvd/nvd.c	Tue Aug 13 16:25:23 2019	(r350994)
+++ stable/12/sys/dev/nvd/nvd.c	Tue Aug 13 19:17:44 2019	(r350995)
@@ -277,17 +277,12 @@ nvd_gonecb(struct disk *dp)
 }
 
 static int
-nvd_ioctl(struct disk *ndisk, u_long cmd, void *data, int fflag,
+nvd_ioctl(struct disk *dp, u_long cmd, void *data, int fflag,
     struct thread *td)
 {
-	int ret = 0;
+	struct nvd_disk		*ndisk = dp->d_drv1;
 
-	switch (cmd) {
-	default:
-		ret = EIO;
-	}
-
-	return (ret);
+	return (nvme_ns_ioctl_process(ndisk->ns, cmd, data, fflag, td));
 }
 
 static int



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