mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
fs/omfs/inode.c: replace count*size kzalloc by kcalloc
kcalloc manages count*sizeof overflow. Signed-off-by: Fabian Frederick <[email protected]> Acked-by: Bob Copeland <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b8f52d89c0
commit
998d6688fb
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue