[PATCH rdma-core v3 6/6] tests: Bug fix for get_access_flags()