SOURCES (LINUX_2_6_20): linux-2.6-vs2.3.patch - fix for fs/read_wr...

mguevara mguevara at pld-linux.org
Tue Jan 16 15:57:32 CET 2007


Author: mguevara                     Date: Tue Jan 16 14:57:32 2007 GMT
Module: SOURCES                       Tag: LINUX_2_6_20
---- Log message:
- fix for fs/read_write.c

---- Files affected:
SOURCES:
   linux-2.6-vs2.3.patch (1.2.2.20 -> 1.2.2.21) 

---- Diffs:

================================================================
Index: SOURCES/linux-2.6-vs2.3.patch
diff -u SOURCES/linux-2.6-vs2.3.patch:1.2.2.20 SOURCES/linux-2.6-vs2.3.patch:1.2.2.21
--- SOURCES/linux-2.6-vs2.3.patch:1.2.2.20	Tue Jan 16 15:47:06 2007
+++ SOURCES/linux-2.6-vs2.3.patch	Tue Jan 16 15:57:26 2007
@@ -11127,7 +11127,7 @@
 +	ssize_t ret;
 +
 +	/* verify in_file */
-+	in_inode = in_file->f_dentry->d_inode;
++	in_inode = in_file->f_path.dentry->d_inode;
 +	if (!in_inode)
 +		return -EINVAL;
 +	if (!in_file->f_op || !in_file->f_op->sendfile)
@@ -11145,7 +11145,7 @@
 +	count = ret;
 +
 +	/* verify out_file */
-+	out_inode = out_file->f_dentry->d_inode;
++	out_inode = out_file->f_path.dentry->d_inode;
 +	if (!out_inode)
 +		return -EINVAL;
 +	if (!out_file->f_op || !out_file->f_op->sendpage)
@@ -11200,7 +11200,7 @@
  	if (!(in_file->f_mode & FMODE_READ))
  		goto fput_in;
 -	retval = -EINVAL;
--	in_inode = in_file->f_dentry->d_inode;
+-	in_inode = in_file->f_path.dentry->d_inode;
 -	if (!in_inode)
 -		goto fput_in;
 -	if (!in_file->f_op || !in_file->f_op->sendfile)
@@ -11225,7 +11225,7 @@
 -	retval = -EINVAL;
 -	if (!out_file->f_op || !out_file->f_op->sendpage)
 -		goto fput_out;
--	out_inode = out_file->f_dentry->d_inode;
+-	out_inode = out_file->f_path.dentry->d_inode;
 -	retval = rw_verify_area(WRITE, out_file, &out_file->f_pos, count);
 -	if (retval < 0)
 -		goto fput_out;
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/linux-2.6-vs2.3.patch?r1=1.2.2.20&r2=1.2.2.21&f=u



More information about the pld-cvs-commit mailing list