Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b035904 authored by Dan Carpenter's avatar Dan Carpenter Committed by Steve French
Browse files

cifs: add kfree() on error path



We leak 256 bytes here on this error path.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <sfrench@us.ibm.com>
parent f7c5445a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1362,6 +1362,7 @@ static int cifs_writepages(struct address_space *mapping,
	if (!experimEnabled && tcon->ses->server->secMode &
			(SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) {
		cifsFileInfo_put(open_file);
		kfree(iov);
		return generic_writepages(mapping, wbc);
	}
	cifsFileInfo_put(open_file);