diff options
author | Dulshani Gunawardhana <[email protected]> | 2013-10-31 10:32:18 +0530 |
---|---|---|
committer | Chris Mason <[email protected]> | 2013-11-11 22:12:22 -0500 |
commit | d9b0d9ba04cf99abff9125b688c03e154598a644 (patch) | |
tree | 19d5fd9776a761379a89a1f87e452973bd9685a1 /scripts | |
parent | e248e04e7798d234ddbeab6ee6acdec2476fe1a8 (diff) |
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 'scripts')
0 files changed, 0 insertions, 0 deletions