Re: [PATCH] btrfs: Fix passing 0 to ERR_PTR in btrfs_search_dir_index_item()
From: Johannes Thumshirn
Date: Tue Oct 22 2024 - 03:16:46 EST
On 22.10.24 08:53, Yue Haibing wrote:
>> and then set it to ENOENT if it is NULL. So it should be
>>
>> if (ret >= 0)
>> ret = -ENOENT;
>> return ERR_PTR(-ENOENT);
>
> Here should be
> return ERR_PTR(ret);
Yep of cause.