Date: Thu, 29 Oct 2015 09:08:04 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r290137 - stable/10/sys/cam/ctl Message-ID: <201510290908.t9T9847j027740@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510290908.t9T9847j027740>