linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Matt Reppert <arashi@arashi.yi.org>
To: linux-kernel@vger.kernel.org
Cc: torvalds@transmeta.com, davem@redhat.com, akpm@digeo.com
Subject: [PATCH] smbfs compile fixes for latest BK
Date: Tue, 15 Oct 2002 01:28:36 -0500	[thread overview]
Message-ID: <20021015012836.681723e3.arashi@arashi.yi.org> (raw)

Compiled, no warnings, but not tested (no means to do so ATM); however, these
seem to be in line with changes in the latest BK elsewhere in this file.
Against 2.5.42-mm3.

--- linux-2.5-orig/fs/smbfs/sock.c	2002-10-15 01:03:03 -0500
+++ linux-2.5/fs/smbfs/sock.c		2002-10-15 01:08:50 -0500
@@ -58,7 +58,7 @@
 	iov.iov_len = size;
 
 	init_sync_kiocb(&iocb, NULL);
-	si = kiocb_to_siocb(iocb);
+	si = kiocb_to_siocb(&iocb);
 	si->sock = socket;
 	si->scm = &si->async_scm;
 	si->msg = &msg;
@@ -327,7 +327,7 @@
 		rlen = PAGE_SIZE;
 
 	init_sync_kiocb(&iocb, NULL);
-	si = kiocb_to_siocb(iocb);
+	si = kiocb_to_siocb(&iocb);
 	si->sock = sock;
 	si->scm = &si->async_scm;
 	si->msg = &msg;
@@ -338,7 +338,7 @@
 
 	result = sock->ops->recvmsg(&iocb, sock, &msg, rlen, flags, si->scm);
 	if (result >= 0)
-		scm_recv(sock, &msg, &scm, flags);
+		scm_recv(sock, &msg, si->scm, flags);
 	if (-EIOCBQUEUED == result)
 		result = wait_on_sync_kiocb(&iocb);
 
@@ -366,6 +366,8 @@
 smb_receive(struct smb_sb_info *server, struct smb_request *req)
 {
 	struct socket *sock;
+	struct kiocb iocb;
+	struct sock_iocb *si;
 	unsigned int flags;
 	struct iovec iov[4];
 	struct msghdr msg;
@@ -397,7 +399,7 @@
 		rlen = req->rq_rlen;
 
 	init_sync_kiocb(&iocb, NULL);
-	si = kiocb_to_siocb(iocb);
+	si = kiocb_to_siocb(&iocb);
 	si->sock = sock;
 	si->scm = &si->async_scm;
 	si->msg = &msg;
@@ -464,7 +466,7 @@
 		smb_move_iov(&msg, iov, req->rq_bytes_sent);
 
 	init_sync_kiocb(&iocb, NULL);
-	si = kiocb_to_siocb(iocb);
+	si = kiocb_to_siocb(&iocb);
 	si->scm = &si->async_scm;
 	si->sock = sock;
 	si->msg = &msg;
@@ -476,7 +478,7 @@
 	if (result >= 0) {
 		result = sock->ops->sendmsg(&iocb, sock, &msg, slen, si->scm);
 		if (-EIOCBQUEUED != result)
-			scm_destroy(&scm);
+			scm_destroy(si->scm);
 	}
 	if (-EIOCBQUEUED == result)
 		result = wait_on_sync_kiocb(&iocb);


Matt

                 reply	other threads:[~2002-10-15  6:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021015012836.681723e3.arashi@arashi.yi.org \
    --to=arashi@arashi.yi.org \
    --cc=akpm@digeo.com \
    --cc=davem@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).