git: 4a90d6c823df - stable/13 - ocs_fc: Do not respond to unsolicited NOP BLS command.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Mar 2022 11:03:08 UTC
The branch stable/13 has been updated by ram: URL: https://cgit.FreeBSD.org/src/commit/?id=4a90d6c823df322112440d1294c91846d101b85a commit 4a90d6c823df322112440d1294c91846d101b85a 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-07 10:54:56 +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 (cherry picked from commit 57e4b677559a742031c7478d801c1e218afae239) --- 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);