Re: [PATCH qedr 04/10] qedr: Add support for PD,PKEY and CQ verbs

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

 



>> +     pd = kzalloc(sizeof(*pd), GFP_KERNEL);
>> +     if (!pd) {
>> +             DP_ERR(dev, "failed to alloce PD\n");
>> +             return ERR_PTR(-ENOMEM);
>> +     }
>> +
>> +     if (!dev->rdma_ctx) {
>> +             DP_ERR(dev, "invlaid RDMA context\n");
>> +             return ERR_PTR(-EINVAL);
>
>Don't you want to free pd which was allocated a couple of lines before?

Good catch. Thanks.

>> +     pbe = (struct regpair *)pbl_tbl->va;
>> +     if (!pbe) {
>> +             DP_ERR(dev, "pbe is NULL\n");
>
> ????

Yep, I'll change this.    --
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux