svn commit: r290004 - head/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Mon Oct 26 14:14:58 UTC 2015
Author: mav
Date: Mon Oct 26 14:14:56 2015
New Revision: 290004
URL: https://svnweb.freebsd.org/changeset/base/290004
Log:
Don't try to replicate mode pages not present on this device.
MFC after: 3 days
Modified:
head/sys/cam/ctl/ctl.c
Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c Mon Oct 26 13:28:34 2015 (r290003)
+++ head/sys/cam/ctl/ctl.c Mon Oct 26 14:14:56 2015 (r290004)
@@ -927,6 +927,11 @@ ctl_isc_announce_mode(struct ctl_lun *lu
}
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;
More information about the svn-src-head
mailing list