diff options
| author | Dulshani Gunawardhana <[email protected]> | 2013-10-31 05:02:18 +0000 |
|---|---|---|
| committer | Chris Mason <[email protected]> | 2013-11-12 03:12:22 +0000 |
| commit | d9b0d9ba04cf99abff9125b688c03e154598a644 (patch) | |
| tree | 19d5fd9776a761379a89a1f87e452973bd9685a1 /fs/btrfs/async-thread.c | |
| parent | btrfs: Enclose macros with complex values within parenthesis (diff) | |
| download | kernel-d9b0d9ba04cf99abff9125b688c03e154598a644.tar.gz kernel-d9b0d9ba04cf99abff9125b688c03e154598a644.zip | |
btrfs: Replace kmalloc with kmalloc_array
Replace kmalloc(size * nr, ) with kmalloc_array(nr, size), thus making
it easier to check is that the calculation doesn't wrap or return a smaller allocation
Signed-off-by: Dulshani Gunawardhana <[email protected]>
Reviewed-by: Zach Brown <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions
