From: Moshe Lazer Date: Thu, 5 Feb 2015 11:53:52 +0000 (+0200) Subject: IB/core: Fix deadlock on uverbs modify_qp error flow X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~15^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fb8bcf022f19a375d7c4bd79ac513da8ae6d78b;p=pandora-kernel.git IB/core: Fix deadlock on uverbs modify_qp error flow The deadlock occurs in __uverbs_modify_qp: we take a lock (idr_read_qp) and in case of failure in ib_resolve_eth_l2_attrs we don't release it (put_qp_read). Fix that. Fixes: ed4c54e5b4ba ("IB/core: Resolve Ethernet L2 addresses when modifying QP") Signed-off-by: Moshe Lazer Signed-off-by: Or Gerlitz Signed-off-by: Roland Dreier --- Reading git-diff-tree failed