diff options
author | ken <ken@FreeBSD.org> | 2017-02-20 20:16:11 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 2017-02-20 20:16:11 +0000 |
commit | b8d76103b6270155e56dfa26365cef5b84038733 (patch) | |
tree | 049a17bf35b7e809376faf97a13b8df55c338ff1 | |
parent | 21b74cd8253268ed9118e4b3f2857d332f22f8e6 (diff) | |
download | FreeBSD-src-b8d76103b6270155e56dfa26365cef5b84038733.zip FreeBSD-src-b8d76103b6270155e56dfa26365cef5b84038733.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
------------------------------------------------------------------------
-rw-r--r-- | sys/cam/ctl/ctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c index 1b3a57f..a7ac7f9 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -12393,6 +12393,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)) { |