git: 57e4b677559a - main - ocs_fc: Do not respond to unsolicited NOP BLS command.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 04 Mar 2022 04:57:08 UTC
The branch main has been updated by ram: URL: https://cgit.FreeBSD.org/src/commit/?id=57e4b677559a742031c7478d801c1e218afae239 commit 57e4b677559a742031c7478d801c1e218afae239 Author: Ram Kishore Vegesna <ram@FreeBSD.org> AuthorDate: 2022-03-03 12:46:56 +0000 Commit: Ram Kishore Vegesna <ram@FreeBSD.org> CommitDate: 2022-03-04 04:49:03 +0000 ocs_fc: Do not respond to unsolicited NOP BLS command. Summary: Drop unsolicited BLS commands other than ABTS. Reviewed by: mav MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D34423 --- sys/dev/ocs_fc/ocs_unsol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ocs_fc/ocs_unsol.c b/sys/dev/ocs_fc/ocs_unsol.c index 12b600132c00..c6c9bab02bd8 100644 --- a/sys/dev/ocs_fc/ocs_unsol.c +++ b/sys/dev/ocs_fc/ocs_unsol.c @@ -690,7 +690,7 @@ ocs_node_dispatch_frame(void *arg, ocs_hw_sequence_t *seq) break; case FC_RCTL_BLS: - if (sit_set) { + if ((sit_set) && (hdr->info == FC_INFO_ABTS)) { rc = ocs_node_recv_abts_frame(node, seq); }else { rc = ocs_node_recv_bls_no_sit(node, seq);