svn commit: r361731 - stable/12/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Tue Jun 2 20:38:19 UTC 2020


Author: mav
Date: Tue Jun  2 20:38:18 2020
New Revision: 361731
URL: https://svnweb.freebsd.org/changeset/base/361731

Log:
  MFC r361536: Properly check kern_sg_entries for S/G list.
  
  ctl_data_print() is called in core context, so does not even know meaning
  of ext_sg_entries.

Modified:
  stable/12/sys/cam/ctl/ctl_util.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/cam/ctl/ctl_util.c
==============================================================================
--- stable/12/sys/cam/ctl/ctl_util.c	Tue Jun  2 20:37:31 2020	(r361730)
+++ stable/12/sys/cam/ctl/ctl_util.c	Tue Jun  2 20:38:18 2020	(r361731)
@@ -861,7 +861,7 @@ ctl_data_print(union ctl_io *io)
 		return;
 	if (io->io_hdr.flags & CTL_FLAG_BUS_ADDR)
 		return;
-	if (io->scsiio.ext_sg_entries > 0)	/* XXX: Implement */
+	if (io->scsiio.kern_sg_entries > 0)	/* XXX: Implement */
 		return;
 	ctl_scsi_path_string(io, path_str, sizeof(path_str));
 	len = min(io->scsiio.kern_data_len, 4096);


More information about the svn-src-stable mailing list