Re: [PATCH 1/4] fs: btrfs: inode: handle uninitialized type before returning it

2020-11-19 Thread Tom Rini
On Sat, Oct 31, 2020 at 09:07:49AM +0800, Qu Wenruo wrote: > In btrfs_lookup_path() the local variable @type should always be updated > after we hit any file/dir. > > But if @filename is NULL from the very beginning, then we don't > initialize it and return it directly. > > To prevent such probl

Re: [PATCH 1/4] fs: btrfs: inode: handle uninitialized type before returning it

2020-11-01 Thread Marek Behun
Reviewed-by: Marek BehĂșn

[PATCH 1/4] fs: btrfs: inode: handle uninitialized type before returning it

2020-10-30 Thread Qu Wenruo
In btrfs_lookup_path() the local variable @type should always be updated after we hit any file/dir. But if @filename is NULL from the very beginning, then we don't initialize it and return it directly. To prevent such problem from happening, we initialize @type to BTRFS_FT_UNKNOWN. For normal exe