diff --git a/fs/hmdfs/main.c b/fs/hmdfs/main.c index d0a41061bb2f343317232f54e8a4d8255c1e5673..d72eb60b62d564bb54311f088c8f4dbfce97e2da 100644 --- a/fs/hmdfs/main.c +++ b/fs/hmdfs/main.c @@ -762,6 +762,7 @@ static int hmdfs_update_dst(struct hmdfs_sb_info *sbi) goto out_err; } kfree(sbi->local_dst); + sbi->local_dst = NULL; len = strlen(sbi->real_dst) + strlen(path_local) + 1; if (len > PATH_MAX) {