diff mbox

[06/18] fs_context: fix memory leak with 's' (source) command

Message ID 20180708210154.10423-7-ebiggers3@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Biggers July 8, 2018, 9:01 p.m. UTC
From: Eric Biggers <ebiggers@google.com>

Fixes: 5f417428a312 ("vfs: Implement fsopen() to prepare for a mount")
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 fs/fsopen.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox

Patch

diff --git a/fs/fsopen.c b/fs/fsopen.c
index 5d346ac78d504..8d6fa4ba8fb55 100644
--- a/fs/fsopen.c
+++ b/fs/fsopen.c
@@ -98,7 +98,6 @@  static ssize_t fscontext_write(struct file *file,
 		ret = vfs_set_fs_source(fc, data, len - 2);
 		if (ret < 0)
 			goto err_unlock;
-		data = NULL;
 		break;
 
 	case 'o':