]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: use args in the correct order for kcalloc in btrfsic_read_block
authorLiu Bo <bo.liu@linux.alibaba.com>
Fri, 7 Sep 2018 20:41:40 +0000 (04:41 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 15 Oct 2018 15:23:30 +0000 (17:23 +0200)
commit11ed51472e1b69671bc9675cd13b7506a850e1a3
treeeca1cafa585e31455fb05547967a98c4fbc988ed
parent13c22c45abfd5315a07c8646169e0528db95ad17
Btrfs: use args in the correct order for kcalloc in btrfsic_read_block

kcalloc is defined as:

  kcalloc(size_t n, size_t size, gfp_t flags)

Although this won't cause problems in practice, btrfsic_read_block()
uses kcalloc with n and size in the opposite order.

Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/check-integrity.c