From: Dennis Dalessandro Date: Mon, 17 Mar 2014 18:07:16 +0000 (-0400) Subject: IB/qib: Fix memory leak of recv context when driver fails to initialize. X-Git-Tag: v3.15-rc1~103^2^9~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06064a103f6bd5b409ffed6248983270c0681c21;p=pandora-kernel.git IB/qib: Fix memory leak of recv context when driver fails to initialize. In qib_create_ctxts() we allocate an array to hold recv contexts. Then attempt to create data for those recv contexts. If that call to qib_create_ctxtdata() fails then an error is returned but the previously allocated memory is not freed. Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro Signed-off-by: Roland Dreier --- Reading git-diff-tree failed