• Roland Dreier's avatar
    [PATCH] IB/mthca: Initialize eq->nent before we use it · c915033f
    Roland Dreier authored
    In mthca_create_eq(), we call get_eqe() before setting eq->nent.  This
    is wrong, because get_eqe() uses eq->nent.  Fix this, and clean up the
    code a little while we're at it.  (We got lucky with the current code,
    because eq->nent was cleared to 0, which get_eqe() made happen to do
    the right thing)
    
    Pointed out by Michael S. Tsirkin <mst@mellanox.co.il>
    Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
    c915033f
mthca_eq.c 25.8 KB