1. 25 2月, 2020 1 次提交
  2. 21 1月, 2020 1 次提交
    • B
      scsi: qla2xxx: Fix a NULL pointer dereference in an error path · 17c5f65d
      Bart Van Assche 提交于
      This patch fixes the following Coverity complaint:
      
      FORWARD_NULL
      
      qla_init.c: 5275 in qla2x00_configure_local_loop()
      5269
      5270     		if (fcport->scan_state == QLA_FCPORT_FOUND)
      5271     			qla24xx_fcport_handle_login(vha, fcport);
      5272     	}
      5273
      5274     cleanup_allocation:
      >>>     CID 353340:    (FORWARD_NULL)
      >>>     Passing null pointer "new_fcport" to "qla2x00_free_fcport", which dereferences it.
      5275     	qla2x00_free_fcport(new_fcport);
      5276
      5277     	if (rval != QLA_SUCCESS) {
      5278     		ql_dbg(ql_dbg_disc, vha, 0x2098,
      5279     		    "Configure local loop error exit: rval=%x.\n", rval);
      5280     	}
      qla_init.c: 5275 in qla2x00_configure_local_loop()
      5269
      5270     		if (fcport->scan_state == QLA_FCPORT_FOUND)
      5271     			qla24xx_fcport_handle_login(vha, fcport);
      5272     	}
      5273
      5274     cleanup_allocation:
      >>>     CID 353340:    (FORWARD_NULL)
      >>>     Passing null pointer "new_fcport" to "qla2x00_free_fcport", which dereferences it.
      5275     	qla2x00_free_fcport(new_fcport);
      5276
      5277     	if (rval != QLA_SUCCESS) {
      5278     		ql_dbg(ql_dbg_disc, vha, 0x2098,
      5279     		    "Configure local loop error exit: rval=%x.\n", rval);
      5280     	}
      
      Fixes: 3dae2205 ("scsi: qla2xxx: Use common routine to free fcport struct")
      Cc: Himanshu Madhani <hmadhani@marvell.com>
      Cc: Quinn Tran <qutran@marvell.com>
      Cc: Martin Wilck <mwilck@suse.com>
      Cc: Daniel Wagner <dwagner@suse.de>
      Cc: Roman Bolshakov <r.bolshakov@yadro.com>
      Link: https://lore.kernel.org/r/20200118042056.32232-1-bvanassche@acm.orgSigned-off-by: NBart Van Assche <bvanassche@acm.org>
      Reviewed-by: NEwan D. Milne <emilne@redhat.com>
      Reviewed-by: NDaniel Wagner <dwagner@suse.de>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      17c5f65d
  3. 22 12月, 2019 4 次提交
  4. 20 12月, 2019 6 次提交
  5. 10 12月, 2019 5 次提交
  6. 27 11月, 2019 1 次提交
  7. 09 11月, 2019 7 次提交
  8. 10 10月, 2019 1 次提交
  9. 24 9月, 2019 2 次提交
  10. 08 9月, 2019 2 次提交
  11. 20 8月, 2019 2 次提交
  12. 17 8月, 2019 1 次提交
  13. 13 8月, 2019 7 次提交