From: Michal Nazarewicz Date: Wed, 11 Dec 2013 16:43:39 +0000 (+0100) Subject: net: wirelesse: wcn36xx: pull allocation outside of critical section X-Git-Tag: v3.14-rc1~94^2~334^2^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90accd0b4701c41a4a35c717d4f4439a9fc2b70c;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed