Re: [PATCH][next] btrfs: fix check for memory allocation failure of ret->path
From: David Sterba
Date: Mon Apr 27 2020 - 11:18:54 EST
On Tue, Apr 21, 2020 at 01:47:03PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Currently the memory allocation failure check for ret->path is checking
> that ret is null rather than ret->path. Fix this by checking ret->path
> instead.
>
> Addresses-Coverity: ("Dereference null return")
> Fixes: bd8bdc532152 ("btrfs: backref: introduce the skeleton of btrfs_backref_iter")
As this is still in development branch, fixup folded in. Thanks.