The patch titled Fix error handling in HDIO_GETGEO compat wrapper has been added to the -mm tree. Its filename is fix-error-handling-in-hdio_getgeo-compat-wrapper.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: Fix error handling in HDIO_GETGEO compat wrapper From: Andreas Schwab <schwab@xxxxxxx> Don't clobber error from sys_ioctl in HDIO_GETGEO compat wrapper. Signed-off-by: Andreas Schwab <schwab@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/compat_ioctl.c | 4 +++- 1 files 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 schwab@xxxxxxx are fat_dont-use_free_clusters-for-fat32.patch fix-error-handling-in-hdio_getgeo-compat-wrapper.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html