Date: Mon, 26 Oct 2015 14:14:56 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290004 - head/sys/cam/ctl Message-ID: <201510261414.t9QEEuuF091084@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510261414.t9QEEuuF091084>