Subject: 2.4.30 do_readv_writev32 fix

From: Atsushi Nemoto <[email-masked]>
Date: Fri, 22 Apr 2005 19:25:30 +0900 (JST)

Hi.  Here is a patch to fix a bug introduced on 2.4.30 ...

--- linux-mips-2.4/arch/mips64/kernel/linux32.c	2005-04-18 11:44:19.000000000 +0900
+++ linux-2.4/arch/mips64/kernel/linux32.c	2005-04-22 19:15:32.358642423 +0900
@@ -1101,6 +1101,7 @@
 	 * specially as they have atomicity guarantees and can handle
 	 * iovec's natively
 	 */
+	inode = file->f_dentry->d_inode;
 	if (inode->i_sock) {
 		int err;
 		err = sock_readv_writev(type, inode, file, iov, count, tot_len);

---

From: Ralf Baechle <[email-masked]>
Date: Fri, 22 Apr 2005 14:01:38 +0100

> Hi.  Here is a patch to fix a bug introduced on 2.4.30 ...

Thanks.  Funny things comming from upstrea at times ;-)

  Ralf