RE: [PATCH rdma-rc] RDMA/ucma: Fix access to non-initialized CM_ID object

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

 



> > ok and one more question, the syzkaller reported failure in this
> line line:
> > 4170         if (rdma_protocol_roce(id->device, id->port_num))
> >
> > Will the check of existence of id->device enough? Or should I need
> to check port_num too?
> 
> Sure would be confusing if device was valid but port_num was not :(

Checking device is enough, both are set in cma_acquire_device()
--
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