git: 6e71c95f11d1 - stable/12 - ocs_fc: Do not respond to unsolicited NOP BLS command.

From: Ram Kishore Vegesna <ram_at_FreeBSD.org>
Date: Mon, 07 Mar 2022 11:00:39 UTC
The branch stable/12 has been updated by ram:

URL: https://cgit.FreeBSD.org/src/commit/?id=6e71c95f11d171dfe4f8962ea0ca3dca7e260776

commit 6e71c95f11d171dfe4f8962ea0ca3dca7e260776
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:51:23 +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 d84442dd6495..dd85fd934d6f 100644
--- a/sys/dev/ocs_fc/ocs_unsol.c
+++ b/sys/dev/ocs_fc/ocs_unsol.c
@@ -693,7 +693,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);