On 10/12/2021 12:09, Dan Carpenter wrote:
Hi Johannes,
url:
https://github.com/0day-ci/linux/commits/Johannes-Thumshirn/btrfs-zoned-f...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next
config: i386-randconfig-m021-20211207
(
https://download.01.org/0day-ci/archive/20211209/202112090657.BflsS2SD-lk...)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
Hi Dan,
I've send a fix.
New smatch warnings:
fs/btrfs/zoned.c:597 btrfs_get_dev_zone_info() warn: possible memory leak of
'zone_info'
Old smatch warnings:
fs/btrfs/zoned.c:169 sb_zone_number() error: uninitialized symbol 'zone'.
fs/btrfs/zoned.c:1452 btrfs_load_block_group_zone_info() error: uninitialized symbol
'ret'.
These two are false positive afaics.
Byte,
Johannes