Fix ibv_cmd_query_device_ex to return valid output
Make sure to return valid output by memset the extended fields to zero.
No need to deal with specific fields any more.
Currently, extended fields will be assigned to some value or 0 depending
on response from the command. When adding a new extended field, relevant
variables must be cleared if no response got from the kernel.
Signed-off-by: Bodong Wang <firstname.lastname@example.org>
Reviewed-by: Yishai Hadas <email@example.com>
Signed-off-by: Doug Ledford <firstname.lastname@example.org>
1 file changed