diff options
| -rw-r--r-- | security/selinux/ss/hashtab.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/security/selinux/ss/hashtab.c b/security/selinux/ss/hashtab.c index 2cc496149842..dc99fff64ecb 100644 --- a/security/selinux/ss/hashtab.c +++ b/security/selinux/ss/hashtab.c @@ -24,7 +24,7 @@ struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, const void *  	p->nel = 0;  	p->hash_value = hash_value;  	p->keycmp = keycmp; -	p->htable = kmalloc(sizeof(*(p->htable)) * size, GFP_KERNEL); +	p->htable = kmalloc_array(size, sizeof(*p->htable), GFP_KERNEL);  	if (p->htable == NULL) {  		kfree(p);  		return NULL; | 
