summaryrefslogtreecommitdiffstats
path: root/drivers/staging/csr
diff options
context:
space:
mode:
authorDevendra Naga2012-11-01 07:24:40 +0100
committerGreg Kroah-Hartman2012-11-01 16:48:56 +0100
commita6de05d87aa8604acf062ce42ace21e08986d2a9 (patch)
treed160dd7c5e292e6df0afd15530260540caea0b3b /drivers/staging/csr
parentstaging: csr: sme_blocking.c: remove braces around single statement blocks (diff)
downloadkernel-qcow2-linux-a6de05d87aa8604acf062ce42ace21e08986d2a9.tar.gz
kernel-qcow2-linux-a6de05d87aa8604acf062ce42ace21e08986d2a9.tar.xz
kernel-qcow2-linux-a6de05d87aa8604acf062ce42ace21e08986d2a9.zip
staging: csr: sme_blocking.c: add missing check for return of sme_wait_for_reply
sme_ap_config misses a check of the return of the sme_wait_for_reply as all other functions do here, for the return of sme_wait_for_reply add the check and fail if it returns other than 0. Signed-off-by: Devendra Naga <devendra.aaru@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/csr')
-rw-r--r--drivers/staging/csr/sme_blocking.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/csr/sme_blocking.c b/drivers/staging/csr/sme_blocking.c
index f79811e2d7ed..d88ccd5bd428 100644
--- a/drivers/staging/csr/sme_blocking.c
+++ b/drivers/staging/csr/sme_blocking.c
@@ -1455,6 +1455,8 @@ int sme_ap_config(unifi_priv_t *priv,
*ap_mac_config);
r = sme_wait_for_reply(priv, UNIFI_SME_MGT_SHORT_TIMEOUT);
+ if (r)
+ return r;
unifi_trace(priv, UDBG4,
"sme_ap_config <-- (r=%d status=%d)\n",