[MLX4] return a more specific return code (in the bad flow of create_cq) [MLNX: 2537]
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 2 Jun 2008 16:36:08 +0000 (16:36 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 2 Jun 2008 16:36:08 +0000 (16:36 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1228 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mlx4/user/hca/verbs.c

index 0e6bedf..89ca274 100644 (file)
@@ -352,7 +352,7 @@ mlx4_pre_create_cq (
        
        /* Sanity check CQ size before proceeding */
        if (*p_size > 0x3fffff) {
-               status = IB_INVALID_PARAMETER;
+               status = IB_INVALID_CQ_SIZE;
                goto err_cqe_size;
        }