]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - fs/cifs/transport.c
Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[linux.git] / fs / cifs / transport.c
index 3d2e11f85cbafd5ac7b11ed4df17255914131e65..cb3ee916f5275e1eef81a53fdd4685b860d09349 100644 (file)
@@ -76,6 +76,8 @@ AllocMidQEntry(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server)
         * The default is for the mid to be synchronous, so the
         * default callback just wakes up the current task.
         */
+       get_task_struct(current);
+       temp->creator = current;
        temp->callback = cifs_wake_up_task;
        temp->callback_data = current;
 
@@ -158,6 +160,7 @@ static void _cifs_mid_q_entry_release(struct kref *refcount)
                }
        }
 #endif
+       put_task_struct(midEntry->creator);
 
        mempool_free(midEntry, cifs_mid_poolp);
 }