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
/
video
/
fbdev
/
xen-fbfront.c
diff --git
a/drivers/video/fbdev/xen-fbfront.c
b/drivers/video/fbdev/xen-fbfront.c
index 46f63960fa9e6aa2913be8b804c1de24ce1245be..6a4bbc9e1fb095e3444085cddcaf67340809454a 100644
(file)
--- a/
drivers/video/fbdev/xen-fbfront.c
+++ b/
drivers/video/fbdev/xen-fbfront.c
@@
-412,7
+412,7
@@
static int xenfb_probe(struct xenbus_device *dev,
info->nr_pages = (fb_size + PAGE_SIZE - 1) >> PAGE_SHIFT;
- info->gfns = vmalloc(
sizeof(unsigned long) * info->nr_pages
);
+ info->gfns = vmalloc(
array_size(sizeof(unsigned long), info->nr_pages)
);
if (!info->gfns)
goto error_nomem;