Hi, Le vendredi 27 mai 2011 à 18:01 +0000, Hefty, Sean a écrit : > > ibv_get_device_list() returns the array of available RDMA devices, or > > sets errno and returns NULL if the request fails. If no devices are > > found then num_devices is set to 0, and non-NULL is returned. > > Thanks. I think the following fixes the same issue. If this looks okay to > you, I'll will commit. >
You're not handling the error case when ibv_get_device_list() returns NULL. We need two different error path: one for NULL and one for empty list. In the latter case, the list must be freed. Regards. -- Yann Droneaud OPTEYA -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
