Skip to content
Commit 90accd0b authored by Michal Nazarewicz's avatar Michal Nazarewicz Committed by John W. Linville
Browse files

net: wirelesse: wcn36xx: pull allocation outside of critical section



Commit [3469adb3: 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: default avatarMichal Nazarewicz <mina86@mina86.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 623c4387
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment