aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/file2alias.c
diff options
context:
space:
mode:
authorRoland Dreier <[email protected]>2007-07-21 04:19:43 +0000
committerRoland Dreier <[email protected]>2007-07-21 04:19:43 +0000
commit23f1b38481596ad77e5f51562977b12c8418eee3 (patch)
tree7df6cea98a135f5a85657f0dde882410cdfd5d7e /scripts/mod/file2alias.c
parentmlx4_core: Change command token on timeout (diff)
downloadkernel-23f1b38481596ad77e5f51562977b12c8418eee3.tar.gz
kernel-23f1b38481596ad77e5f51562977b12c8418eee3.zip
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 <[email protected]>. Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'scripts/mod/file2alias.c')
0 files changed, 0 insertions, 0 deletions