Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: wirelesse: wcn36xx: pull allocation outside of critical section
Commit [3469adb: fix potential NULL pointer dereference] introduced a check of msg_ind allocation, but omitted allocation of msg_ind->msg. Moreover, it introduced two if statements, which looked a bit clunky. This commit moves allocation code outside of the critical section so there's no need to dance around mutex_unlock, and adds the missing allocation check. Signed-off-by: Michal Nazarewicz <[email protected]> Signed-off-by: John W. Linville <[email protected]>
- Loading branch information