In the Linux kernel, the following vulnerability has been resolved:
RDMA/rxe: Fix error unwind in rxecreateqp()
In the function rxecreateqp(), rxeqpfrominit() is called to initialize qp, internally things like the spin locks are not setup until rxeqpinitreq().
If an error occures before this point then the unwind will call rxecleanup() and eventually to rxeqpdocleanup()/rxecleanuptask() which will oops when trying to access the uninitialized spinlock.
Move the spinlock initializations earlier before any failures.