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]

 



On 11/12/19 4:25 AM, Bean Huo (beanhuo) wrote:
+	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.

Agreed, this should be changed into an IS_ERR() check.

Bart.



[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