VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Fabian Frederick <fabf@skynet.be> 2014-08-08 14:22:41 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2014-08-08 15:57:25 -0700 commit: 998d6688fb399ab313dcd6f24d1196e3aaa8578c parent: b8f52d89c0c6daec8a9f9e00c1c9afb680cbcf5e
Commit Summary:
fs/omfs/inode.c: replace count*size kzalloc by kcalloc
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/fs/omfs/inode.c b/fs/omfs/inode.c
index ec58c7659183..ba8819702c56 100644
--- a/fs/omfs/inode.c
+++ b/fs/omfs/inode.c
@@ -321,7 +321,7 @@ static int omfs_get_imap(struct super_block *sb)
 		goto out;
 
 	sbi->s_imap_size = array_size;
-	sbi->s_imap = kzalloc(array_size * sizeof(unsigned long *), GFP_KERNEL);
+	sbi->s_imap = kcalloc(array_size, sizeof(unsigned long *), GFP_KERNEL);
 	if (!sbi->s_imap)
 		goto nomem;