Kaynağa Gözat

[iscsi] Add missing "break" statements

iscsi_tx_done() is missing "break" statements at the end of each case.
(Fortunately, this happens not to cause a bug in practice, since
iscsi_login_request_done() is effectively a no-op when completing a
data-out PDU.)

Reported-by: Wissam Shoukair <wissams@mellanox.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 9 yıl önce
ebeveyn
işleme
76338543f9
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2
    0
      src/net/tcp/iscsi.c

+ 2
- 0
src/net/tcp/iscsi.c Dosyayı Görüntüle

@@ -1439,8 +1439,10 @@ static void iscsi_tx_done ( struct iscsi_session *iscsi ) {
1439 1439
 	switch ( common->opcode & ISCSI_OPCODE_MASK ) {
1440 1440
 	case ISCSI_OPCODE_DATA_OUT:
1441 1441
 		iscsi_data_out_done ( iscsi );
1442
+		break;
1442 1443
 	case ISCSI_OPCODE_LOGIN_REQUEST:
1443 1444
 		iscsi_login_request_done ( iscsi );
1445
+		break;
1444 1446
 	default:
1445 1447
 		/* No action */
1446 1448
 		break;

Loading…
İptal
Kaydet