summaryrefslogtreecommitdiff
path: root/scripts/pnmtologo.c
diff options
context:
space:
mode:
authorMichal Nazarewicz <mina86@mina86.com>2013-12-11 20:43:39 +0400
committerJohn W. Linville <linville@tuxdriver.com>2013-12-19 00:18:19 +0400
commit90accd0b4701c41a4a35c717d4f4439a9fc2b70c (patch)
tree1d43bd6a347b3c6c23ff9890876952c5866b77b0 /scripts/pnmtologo.c
parent623c43875f496fdd3fc0e6288bd0e06aa2b63c9d (diff)
downloadlinux-90accd0b4701c41a4a35c717d4f4439a9fc2b70c.tar.xz
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: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'scripts/pnmtologo.c')
0 files changed, 0 insertions, 0 deletions