projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: Use array_size() in vmalloc()
[linux-2.6-block.git]
/
drivers
/
net
/
wireless
/
ath
/
ath5k
/
debug.c
diff --git
a/drivers/net/wireless/ath/ath5k/debug.c
b/drivers/net/wireless/ath/ath5k/debug.c
index 3513bbec463982fee6ac403d3c5fac379999fba3..e01faf641288fbac6e7412c18025fac5537c52c9 100644
(file)
--- a/
drivers/net/wireless/ath/ath5k/debug.c
+++ b/
drivers/net/wireless/ath/ath5k/debug.c
@@
-931,7
+931,7
@@
static int open_file_eeprom(struct inode *inode, struct file *file)
/* Create buffer and read in eeprom */
- buf = vmalloc(
eesize * 2
);
+ buf = vmalloc(
array_size(eesize, 2)
);
if (!buf) {
ret = -ENOMEM;
goto err;