Commit a08d897b authored by Steve French's avatar Steve French

fix memory leak in large read decrypt offload

Spotted by Ronnie.
Reviewed-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent d6d5df1d
......@@ -4084,6 +4084,7 @@ static void smb2_decrypt_offload(struct work_struct *work)
kfree(dw->ppages);
cifs_small_buf_release(dw->buf);
kfree(dw);
}
......@@ -4157,7 +4158,7 @@ receive_encrypted_read(struct TCP_Server_Info *server, struct mid_q_entry **mid,
dw->server = server;
dw->ppages = pages;
dw->len = len;
queue_work(cifsiod_wq, &dw->decrypt);
queue_work(decrypt_wq, &dw->decrypt);
*num_mids = 0; /* worker thread takes care of finding mid */
return -1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment