X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=fs%2Fsmbfs%2Fproc.c;h=feac46050619075aa90a88f71e4a8e4a31b5cda5;hb=165125e1e480f9510a5ffcfbfee4e3ee38c05f23;hp=a5ced9e0c6c482ed0256a6420a8f47f9d88a23cc;hpb=cd39301a68f9604854f3543117b01dc73cbe193f;p=linux-2.6-omap-h63xx.git diff --git a/fs/smbfs/proc.c b/fs/smbfs/proc.c index a5ced9e0c6c..feac4605061 100644 --- a/fs/smbfs/proc.c +++ b/fs/smbfs/proc.c @@ -877,7 +877,7 @@ smb_newconn(struct smb_sb_info *server, struct smb_conn_opt *opt) goto out_putf; server->sock_file = filp; - server->conn_pid = current->pid; + server->conn_pid = get_pid(task_pid(current)); server->opt = *opt; server->generation += 1; server->state = CONN_VALID; @@ -971,8 +971,8 @@ smb_newconn(struct smb_sb_info *server, struct smb_conn_opt *opt) } VERBOSE("protocol=%d, max_xmit=%d, pid=%d capabilities=0x%x\n", - server->opt.protocol, server->opt.max_xmit, server->conn_pid, - server->opt.capabilities); + server->opt.protocol, server->opt.max_xmit, + pid_nr(server->conn_pid), server->opt.capabilities); /* FIXME: this really should be done by smbmount. */ if (server->opt.max_xmit > SMB_MAX_PACKET_SIZE) {