summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>2017-02-20 20:12:02 +0000
committerken <ken@FreeBSD.org>2017-02-20 20:12:02 +0000
commit3d2189e5eb0b4e56014eee12ea5f0dc3c3dd98da (patch)
tree4049e241e6786f6f833197b13af2d6f9760a1a61 /sys/cam
parent9a26e7f0348c1b9f8533b47315e5abe5b6bcd1b7 (diff)
downloadFreeBSD-src-3d2189e5eb0b4e56014eee12ea5f0dc3c3dd98da.zip
FreeBSD-src-3d2189e5eb0b4e56014eee12ea5f0dc3c3dd98da.tar.gz
MFC 313895:
------------------------------------------------------------------------ r313895 | ken | 2017-02-17 13:15:27 -0700 (Fri, 17 Feb 2017) | 9 lines Make ctl(4) build with CTL_IO_DELAY defined. sys/cam/ctl/ctl.c: In ctl_datamove(), inside CTL_IO_DELAY, add a lun variable and fill it in before trying to dereference it. Sponsored by: Spectra Logic ------------------------------------------------------------------------
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/ctl/ctl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index b80a7d8..e5ca93a 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -12402,6 +12402,9 @@ ctl_datamove(union ctl_io *io)
if (io->io_hdr.flags & CTL_FLAG_DELAY_DONE) {
io->io_hdr.flags &= ~CTL_FLAG_DELAY_DONE;
} else {
+ struct ctl_lun *lun;
+
+ lun = CTL_LUN(io);
if ((lun != NULL)
&& (lun->delay_info.datamove_delay > 0)) {
OpenPOWER on IntegriCloud