diff options
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r-- | drivers/net/wireless/airo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index c44f38895fbe..a3e324e0ca83 100644 --- 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, | |||
4727 | StatsRid stats; | 4727 | StatsRid stats; |
4728 | int i, j; | 4728 | int i, j; |
4729 | __le32 *vals = stats.vals; | 4729 | __le32 *vals = stats.vals; |
4730 | int len = le16_to_cpu(stats.len); | 4730 | int len; |
4731 | 4731 | ||
4732 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) | 4732 | if ((file->private_data = kzalloc(sizeof(struct proc_data ), GFP_KERNEL)) == NULL) |
4733 | return -ENOMEM; | 4733 | return -ENOMEM; |
@@ -4738,6 +4738,7 @@ static int proc_stats_rid_open( struct inode *inode, | |||
4738 | } | 4738 | } |
4739 | 4739 | ||
4740 | readStatsRid(apriv, &stats, rid, 1); | 4740 | readStatsRid(apriv, &stats, rid, 1); |
4741 | len = le16_to_cpu(stats.len); | ||
4741 | 4742 | ||
4742 | j = 0; | 4743 | j = 0; |
4743 | for(i=0; statsLabels[i]!=(char *)-1 && i*4<len; i++) { | 4744 | for(i=0; statsLabels[i]!=(char *)-1 && i*4<len; i++) { |