From: Hal Rosenstock Date: Fri, 3 Aug 2007 17:45:17 +0000 (-0700) Subject: IB/mad: Fix error path if response alloc fails in ib_mad_recv_done_handler() X-Git-Tag: v2.6.23-rc4~126^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=445d68070c9c02acdda38e6d69bd43096f521035;p=pandora-kernel.git IB/mad: Fix error path if response alloc fails in ib_mad_recv_done_handler() If ib_mad_recv_done_handler() fails to allocate response, then it just printed a warning and continued, which leads to an oops if the MAD is being handled for a switch device, because the switch code uses response without checking for NULL. Fix this by bailing out of the function if the allocation fails. Signed-off-by: Suresh Shelvapille Signed-off-by: Hal Rosenstock Signed-off-by: Roland Dreier --- Reading git-diff-tree failed