diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-12-05 23:20:17 +0000 | 
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-12-05 23:20:17 +0000 | 
| commit | 742eaa6a6e356a16788ce6530271de89bc4f8fb5 (patch) | |
| tree | 12fc040daab06ac796c61c1d92bfad9bb054d1c1 /drivers/xen/gntdev.c | |
| parent | ba8bb18a03f8c7508565c385576a5431a4ad804a (diff) | |
| parent | ae72fd588a2b302222769b44775912b83f0785eb (diff) | |
| download | olio-linux-3.10-742eaa6a6e356a16788ce6530271de89bc4f8fb5.tar.xz olio-linux-3.10-742eaa6a6e356a16788ce6530271de89bc4f8fb5.zip  | |
Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into devel-stable
Conflicts:
	arch/arm/common/gic.c
	arch/arm/plat-omap/include/plat/common.h
Diffstat (limited to 'drivers/xen/gntdev.c')
| -rw-r--r-- | drivers/xen/gntdev.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c index 39871326afa..afca14d9042 100644 --- a/drivers/xen/gntdev.c +++ b/drivers/xen/gntdev.c @@ -114,11 +114,11 @@ static struct grant_map *gntdev_alloc_map(struct gntdev_priv *priv, int count)  	if (NULL == add)  		return NULL; -	add->grants    = kzalloc(sizeof(add->grants[0])    * count, GFP_KERNEL); -	add->map_ops   = kzalloc(sizeof(add->map_ops[0])   * count, GFP_KERNEL); -	add->unmap_ops = kzalloc(sizeof(add->unmap_ops[0]) * count, GFP_KERNEL); -	add->kmap_ops  = kzalloc(sizeof(add->kmap_ops[0])  * count, GFP_KERNEL); -	add->pages     = kzalloc(sizeof(add->pages[0])     * count, GFP_KERNEL); +	add->grants    = kcalloc(count, sizeof(add->grants[0]), GFP_KERNEL); +	add->map_ops   = kcalloc(count, sizeof(add->map_ops[0]), GFP_KERNEL); +	add->unmap_ops = kcalloc(count, sizeof(add->unmap_ops[0]), GFP_KERNEL); +	add->kmap_ops  = kcalloc(count, sizeof(add->kmap_ops[0]), GFP_KERNEL); +	add->pages     = kcalloc(count, sizeof(add->pages[0]), GFP_KERNEL);  	if (NULL == add->grants    ||  	    NULL == add->map_ops   ||  	    NULL == add->unmap_ops ||  |