diff options
author | Roland Dreier <rolandd@cisco.com> | 2005-09-18 13:52:06 -0700 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2005-09-18 22:02:38 -0700 |
commit | c915033fc62d7186d243d89f88782d6be33fd8f6 (patch) | |
tree | e509ef63ef6dba42f31807b5c9f6c20b48be3a9a /drivers/infiniband/hw/mthca/mthca_srq.c | |
parent | ce5b65cc9626feac0d4ffb96f798407e50c45575 (diff) |
[PATCH] IB/mthca: Initialize eq->nent before we use it
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: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_srq.c')
0 files changed, 0 insertions, 0 deletions