From: Roland Dreier Date: Sun, 18 Sep 2005 20:52:06 +0000 (-0700) Subject: [PATCH] IB/mthca: Initialize eq->nent before we use it X-Git-Tag: v2.6.14-rc3~150^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c915033fc62d7186d243d89f88782d6be33fd8f6;p=pandora-kernel.git [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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed