diff options
author | mav <mav@FreeBSD.org> | 2015-10-29 09:08:04 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-10-29 09:08:04 +0000 |
commit | 3f6c69cad7f232f31ce8cf4ea7512c58d1988084 (patch) | |
tree | d775fc45b0ed6c094cf118ce3c12e1b6d8a83346 | |
parent | 07e8014e2b9f208ef20814cb53a4ee52c9b8332d (diff) | |
download | FreeBSD-src-3f6c69cad7f232f31ce8cf4ea7512c58d1988084.zip FreeBSD-src-3f6c69cad7f232f31ce8cf4ea7512c58d1988084.tar.gz |
MFC r290004: Don't try to replicate mode pages not present on this device.
-rw-r--r-- | sys/cam/ctl/ctl.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c index ea04eef..cde8489 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -929,6 +929,11 @@ ctl_isc_announce_mode(struct ctl_lun *lun, uint32_t initidx, } if (i == CTL_NUM_MODE_PAGES) return; + + /* Don't try to replicate pages not present on this device. */ + if (lun->mode_pages.index[i].page_data == NULL) + return; + bzero(&msg.mode, sizeof(msg.mode)); msg.hdr.msg_type = CTL_MSG_MODE_SYNC; msg.hdr.nexus.targ_port = initidx / CTL_MAX_INIT_PER_PORT; |