Re: [PATCH v2 08/12] qla2xxx: Add framework for Async fabric discovery.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2017-01-16 at 12:35 -0800, Himanshu Madhani wrote:
> -static void
> +void
>  qla2x00_async_iocb_timeout(void *data)
>  {
>  	srb_t *sp = (srb_t *)data;
>  	fc_port_t *fcport = sp->fcport;
> +	struct srb_iocb *lio = &sp->u.iocb_cmd;
> +	struct event_arg ea;
>  
>  	ql_dbg(ql_dbg_disc, fcport->vha, 0x2071,
> -	    "Async-%s timeout - hdl=%x portid=%02x%02x%02x.\n",
> +	    "Async-%s timeout - hdl=%x portid=%02x%02x%02x %8phC.\n",
>  	    sp->name, sp->handle, fcport->d_id.b.domain, fcport->d_id.b.area,
> -	    fcport->d_id.b.al_pa);
> +		fcport->d_id.b.al_pa, fcport->port_name);
>  
> -	fcport->flags &= ~FCF_ASYNC_SENT;
> -	if (sp->type == SRB_LOGIN_CMD) {
> -		struct srb_iocb *lio = &sp->u.iocb_cmd;
> -		qla2x00_post_async_logout_work(fcport->vha, fcport, NULL);
> +	if (fcport)
> +		fcport->flags &= ~FCF_ASYNC_SENT;

This code triggers a new static checker warning because the fcport pointer
is dereferenced before it is used. Please review the code.

Thanks,

Bart.--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux