Skip to content

Commit

Permalink
[PATCH] atmel: memset correct range
Browse files Browse the repository at this point in the history
Specify the correct range when calling memset in atmel_get_range.
Do this by specifying the size of the structure, rather than the size
of the pointer.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Alexey Dobriyan authored and John W. Linville committed Nov 8, 2005
1 parent 097688e commit f36be62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/atmel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ static int atmel_get_range(struct net_device *dev,
int k,i,j;

dwrq->length = sizeof(struct iw_range);
memset(range, 0, sizeof(range));
memset(range, 0, sizeof(struct iw_range));
range->min_nwid = 0x0000;
range->max_nwid = 0x0000;
range->num_channels = 0;
Expand Down

0 comments on commit f36be62

Please sign in to comment.