commit | 881a3a11c2b858fe9b69ef79ac5ee9978a266dc9 | [log] [tgz] |
---|---|---|
author | Pavel Machek <pavel@denx.de> | Mon Aug 03 11:35:06 2020 +0200 |
committer | David Sterba <dsterba@suse.com> | Tue Aug 11 12:30:17 2020 +0200 |
tree | 158cc0b67486ab5fea78b7083621d95096c641dd | |
parent | 62ab2cc04ddc5dfab4e382ae167734fc111da5ed [diff] |
btrfs: fix return value mixup in btrfs_get_extent btrfs_get_extent() sets variable ret, but out: error path expect error to be in variable err so the error code is lost. Fixes: 6bf9e4bd6a27 ("btrfs: inode: Verify inode mode to avoid NULL pointer dereference") CC: stable@vger.kernel.org # 5.4+ Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Pavel Machek (CIP) <pavel@denx.de> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>