diff options
Diffstat (limited to 'fs/ocfs2/sysfile.c')
| -rw-r--r-- | fs/ocfs2/sysfile.c | 9 | 
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/ocfs2/sysfile.c b/fs/ocfs2/sysfile.c index af155c183123..5965f3878d49 100644 --- a/fs/ocfs2/sysfile.c +++ b/fs/ocfs2/sysfile.c @@ -69,10 +69,11 @@ static struct inode **get_local_system_inode(struct ocfs2_super *osb,  	spin_unlock(&osb->osb_lock);  	if (unlikely(!local_system_inodes)) { -		local_system_inodes = kzalloc(sizeof(struct inode *) * -					      NUM_LOCAL_SYSTEM_INODES * -					      osb->max_slots, -					      GFP_NOFS); +		local_system_inodes = +			kzalloc(array3_size(sizeof(struct inode *), +					    NUM_LOCAL_SYSTEM_INODES, +					    osb->max_slots), +				GFP_NOFS);  		if (!local_system_inodes) {  			mlog_errno(-ENOMEM);  			/*  | 
