From: Sean Hefty Date: Fri, 28 Oct 2005 03:48:11 +0000 (-0700) Subject: [IB] ib_umad: various cleanups X-Git-Tag: v2.6.15-rc1~731^2~21^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb0f0910f4b41772a6771bdb4fb2d419b27bcd77;p=pandora-kernel.git [IB] ib_umad: various cleanups Simplify user_mad.c code in a few places, and convert from kmalloc() + memset() to kzalloc(). This also fixes a theoretical race window by not accessing packet->length after posting the send buffer (the send could complete and packet could be freed before we get to the return statement at the end of ib_umad_write()). Signed-off-by: Sean Hefty Signed-off-by: Roland Dreier --- Reading git-diff-tree failed