OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4aa188e
)
airo: correct improper initialization of local variable
author
John W. Linville
<linville@tuxdriver.com>
Tue, 10 Feb 2009 18:53:01 +0000
(13:53 -0500)
committer
John W. Linville
<linville@tuxdriver.com>
Fri, 27 Feb 2009 19:52:42 +0000
(14:52 -0500)
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/airo.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/airo.c
b/drivers/net/wireless/airo.c
index
c44f388
..
a3e324e
100644
(file)
--- a/
drivers/net/wireless/airo.c
+++ b/
drivers/net/wireless/airo.c
@@
-4727,7
+4727,7
@@
static int proc_stats_rid_open( struct inode *inode,
StatsRid stats;
int i, j;
__le32 *vals = stats.vals;
- int len
= le16_to_cpu(stats.len)
;
+ int len;
if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL)
return -ENOMEM;
@@
-4738,6
+4738,7
@@
static int proc_stats_rid_open( struct inode *inode,
}
readStatsRid(apriv, &stats, rid, 1);
+ len = le16_to_cpu(stats.len);
j = 0;
for(i=0; statsLabels[i]!=(char *)-1 && i*4<len; i++) {