mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-28 11:57:28 +00:00
Don't try to replicate mode pages not present on this device.
MFC after: 3 days
This commit is contained in:
parent
aac7caaf47
commit
10643dd70e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290004
@ -927,6 +927,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;
|
||||
|
Loading…
Reference in New Issue
Block a user