On 11/01/2016 04:44 PM, Jim Foraker wrote: > rvt_create_qp() creates qp->ip only when a qp creation request comes from > userspace (udata is not NULL). If we exceed the number of available > queue pairs however, the error path always attempts to put a kref to this > structure. If the requestor is inside the kernel, this leads to a crash. > > We fix this by checking that qp->ip is not NULL before caling kref_put(). > Fixes: 515667f8f8b4 ("IB/rdmavt: Add create queue pair functionality") > Signed-off-by: Jim Foraker <foraker1@xxxxxxxx> Acked-by: Jonathan Toppins <jtoppins@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html