projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57a2a09
)
rsi: Fixed issue relating to return value.
author
Fariya Fatima
<fariyaf@gmail.com>
Wed, 2 Apr 2014 03:59:53 +0000
(09:29 +0530)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 9 Apr 2014 17:55:54 +0000
(13:55 -0400)
Signed-off-by: Fariya Fatima <fariyaf@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rsi/rsi_91x_sdio_ops.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/rsi/rsi_91x_sdio_ops.c
b/drivers/net/wireless/rsi/rsi_91x_sdio_ops.c
index f1cb99cafed829edab015883f23c3b8e6dff0661..20d11ccfffe3b757c06a232ed3c057228339a76b 100644
(file)
--- a/
drivers/net/wireless/rsi/rsi_91x_sdio_ops.c
+++ b/
drivers/net/wireless/rsi/rsi_91x_sdio_ops.c
@@
-247,7
+247,7
@@
static int rsi_process_pkt(struct rsi_common *common)
if (!common->rx_data_pkt) {
rsi_dbg(ERR_ZONE, "%s: Failed in memory allocation\n",
__func__);
- return -
1
;
+ return -
ENOMEM
;
}
status = rsi_sdio_host_intf_read_pkt(adapter,
@@
-260,12
+260,10
@@
static int rsi_process_pkt(struct rsi_common *common)
}
status = rsi_read_pkt(common, rcv_pkt_len);
- kfree(common->rx_data_pkt);
- return status;
fail:
kfree(common->rx_data_pkt);
- return
-1
;
+ return
status
;
}
/**