svn commit: r290137 - stable/10/sys/cam/ctl

Alexander Motin mav at FreeBSD.org
Thu Oct 29 09:08:05 UTC 2015


Author: mav
Date: Thu Oct 29 09:08:04 2015
New Revision: 290137
URL: https://svnweb.freebsd.org/changeset/base/290137

Log:
  MFC r290004: Don't try to replicate mode pages not present on this device.

Modified:
  stable/10/sys/cam/ctl/ctl.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/cam/ctl/ctl.c
==============================================================================
--- stable/10/sys/cam/ctl/ctl.c	Thu Oct 29 08:45:56 2015	(r290136)
+++ stable/10/sys/cam/ctl/ctl.c	Thu Oct 29 09:08:04 2015	(r290137)
@@ -929,6 +929,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-all mailing list