Re: [PATCH] [v2] btrfs: zoned: bail out in btrfs_alloc_chunk for bad input

2021-03-29 Thread David Sterba
On Tue, Mar 23, 2021 at 03:31:19PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > gcc complains that the ctl->max_chunk_size member might be used > uninitialized when none of the three conditions for initializing it in > init_alloc_chunk_ctl_policy_zoned() are true: > > In function

[PATCH] [v2] btrfs: zoned: bail out in btrfs_alloc_chunk for bad input

2021-03-23 Thread Arnd Bergmann
From: Arnd Bergmann gcc complains that the ctl->max_chunk_size member might be used uninitialized when none of the three conditions for initializing it in init_alloc_chunk_ctl_policy_zoned() are true: In function ‘init_alloc_chunk_ctl_policy_zoned’, inlined from ‘init_alloc_chunk_ctl’ at