scoutfs: init ret when freeing zero extents

The server forgot to initialize ret to 0 and might return
undefined errnos if a client asked it to free zero extents.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2018-09-12 15:37:45 -07:00
parent 2cc990406a
commit 7e9d40d65a

View File

@@ -746,7 +746,7 @@ static int server_free_extents(struct super_block *sb,
DECLARE_SERVER_INFO(sb, server);
struct scoutfs_net_extent_list *nexl;
struct commit_waiter cw;
int ret;
int ret = 0;
int err;
u64 i;