The patch titled
     Fix error handling in HDIO_GETGEO compat wrapper
has been removed from the -mm tree.  Its filename was
     fix-error-handling-in-hdio_getgeo-compat-wrapper.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
Subject: Fix error handling in HDIO_GETGEO compat wrapper
From: Andreas Schwab <[EMAIL PROTECTED]>

Don't clobber error from sys_ioctl in HDIO_GETGEO compat wrapper.

Signed-off-by: Andreas Schwab <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---

 fs/compat_ioctl.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff -puN fs/compat_ioctl.c~fix-error-handling-in-hdio_getgeo-compat-wrapper 
fs/compat_ioctl.c
--- a/fs/compat_ioctl.c~fix-error-handling-in-hdio_getgeo-compat-wrapper
+++ a/fs/compat_ioctl.c
@@ -684,8 +684,10 @@ static int hdio_getgeo(unsigned int fd, 
        if (!err) {
                err = copy_to_user (ugeo, &geo, 4);
                err |= __put_user (geo.start, &ugeo->start);
+               if (err)
+                       err = -EFAULT;
        }
-       return err ? -EFAULT : 0;
+       return err;
 }
 
 static int hdio_ioctl_trans(unsigned int fd, unsigned int cmd, unsigned long 
arg)
_

Patches currently in -mm which might be from [EMAIL PROTECTED] are

origin.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to