RE: [EXT] [PATCH v4 1/3] ufs: Avoid busy-waiting by eliminating tag conflicts

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

 



Hi, Bart

> +	req = blk_get_request(q, REQ_OP_DRV_OUT, 0);
> +	if (IS_ERR(req))
> +		return PTR_ERR(req);
> +	tag = req->tag;
> +	WARN_ON_ONCE(!ufshcd_valid_tag(hba, tag));
....
> &tag));
> +	req = blk_get_request(q, REQ_OP_DRV_OUT, 0);
> +	if (IS_ERR(req))
> +		return PTR_ERR(req);
> +	tag = req->tag;
> +	WARN_ON_ONCE(!ufshcd_valid_tag(hba, tag));
> 
......
> 
> +	err = -ENOMEM;
> +	hba->cmd_queue = blk_mq_init_queue(&hba->host->tag_set);
> +	if (!hba->cmd_queue)

It is possible  to return ERR_PTR(-ENOMEM)  in  blk_mq_init_queue(),,
Here just checkup if not NULL is not safe enough.

//Bean




[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