File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -467,7 +467,7 @@ int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache)
467
467
goto out ;
468
468
}
469
469
470
- zones = kcalloc (BTRFS_REPORT_NR_ZONES , sizeof (struct blk_zone ), GFP_KERNEL );
470
+ zones = kvcalloc (BTRFS_REPORT_NR_ZONES , sizeof (struct blk_zone ), GFP_KERNEL );
471
471
if (!zones ) {
472
472
ret = - ENOMEM ;
473
473
goto out ;
@@ -586,7 +586,7 @@ int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache)
586
586
}
587
587
588
588
589
- kfree (zones );
589
+ kvfree (zones );
590
590
591
591
switch (bdev_zoned_model (bdev )) {
592
592
case BLK_ZONED_HM :
@@ -618,7 +618,7 @@ int btrfs_get_dev_zone_info(struct btrfs_device *device, bool populate_cache)
618
618
return 0 ;
619
619
620
620
out :
621
- kfree (zones );
621
+ kvfree (zones );
622
622
out_free_zone_info :
623
623
btrfs_destroy_dev_zone_info (device );
624
624
You can’t perform that action at this time.
0 commit comments