aboutsummaryrefslogtreecommitdiff
path: root/sys/cam/ctl
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2020-05-26 19:09:19 +0000
committerAlexander Motin <mav@FreeBSD.org>2020-05-26 19:09:19 +0000
commit2bbcd07e39d5ea02b895109ac7ae499923783919 (patch)
treef63fc3a13e578810ab79f760bc0803c86c39b910 /sys/cam/ctl
parent9941cb0657d63b4b1570dcf384196bb599bf9024 (diff)
downloadsrc-2bbcd07e39d5ea02b895109ac7ae499923783919.tar.gz
src-2bbcd07e39d5ea02b895109ac7ae499923783919.zip
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. MFC after: 1 week Sponsored by: iXsystems, Inc.
Notes
Notes: svn path=/head/; revision=361536
Diffstat (limited to 'sys/cam/ctl')
-rw-r--r--sys/cam/ctl/ctl_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/ctl/ctl_util.c b/sys/cam/ctl/ctl_util.c
index abcd8d97ab84..d00b96527b07 100644
--- a/sys/cam/ctl/ctl_util.c
+++ b/sys/cam/ctl/ctl_util.c
@@ -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);