From: Roland Dreier Date: Sat, 21 Jul 2007 04:19:43 +0000 (-0700) Subject: IB/mlx4: Fix error path in create_qp_common() X-Git-Tag: v2.6.23-rc1~5^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23f1b38481596ad77e5f51562977b12c8418eee3;p=pandora-kernel.git IB/mlx4: Fix error path in create_qp_common() The error handling code at err_wrid in create_qp_common() does not handle a userspace QP attached to an SRQ correctly, since it ends up in the else clause of the if statement. This means it tries to kfree() the uninitialized qp->sq.wrid and qp->rq.wrid pointers. Fix this so we only free the wrid arrays for kernel QPs. Pointed out by Michael S. Tsirkin . Signed-off-by: Roland Dreier --- Reading git-diff-tree failed