Re: [PATCH-next] fs/btrfs: Fix uninitialized variable

2021-04-17 Thread Khaled Romdhani
On Fri, Apr 16, 2021 at 07:32:03PM +0200, David Sterba wrote: > On Tue, Apr 13, 2021 at 02:06:04PM +0100, Khaled ROMDHANI wrote: > > The variable zone is not initialized. It > > may causes a failed assertion. > > Failed assertion means the 2nd one checking that the result still fits > to 32bit typ

Re: [PATCH-next] fs/btrfs: Fix uninitialized variable

2021-04-16 Thread David Sterba
On Tue, Apr 13, 2021 at 02:06:04PM +0100, Khaled ROMDHANI wrote: > The variable zone is not initialized. It > may causes a failed assertion. Failed assertion means the 2nd one checking that the result still fits to 32bit type. That would mean that none of the cases were hit, but all callers pass v

Re: [PATCH-next] fs/btrfs: Fix uninitialized variable

2021-04-13 Thread Boris Burkov
On Tue, Apr 13, 2021 at 02:06:04PM +0100, Khaled ROMDHANI wrote: > The variable zone is not initialized. It > may causes a failed assertion. > > Addresses-Coverity: ("Uninitialized variables") > > Signed-off-by: Khaled ROMDHANI Reviewed-by: Boris Burkov > --- > fs/btrfs/zoned.c | 2 +- > 1 f

[PATCH-next] fs/btrfs: Fix uninitialized variable

2021-04-13 Thread Khaled ROMDHANI
The variable zone is not initialized. It may causes a failed assertion. Addresses-Coverity: ("Uninitialized variables") Signed-off-by: Khaled ROMDHANI --- fs/btrfs/zoned.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c index eeb3ebe11d7a.