Re: [PATCH] sysfs: return correct error code on unimplemented mmap()

From: Greg Kroah-Hartman
Date: Mon Oct 28 2013 - 12:35:54 EST

On Mon, Oct 28, 2013 at 06:28:30PM +0200, Vladimir Zapolskiy wrote:
> Both POSIX.1-2008 and Linux Programmer's Manual have a dedicated return
> error code for a case, when a file doesn't support mmap(), it's ENODEV.
> This change replaces overloaded EINVAL with ENODEV in a situation
> described above for sysfs binary files.
> Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@xxxxxxxxxx>
> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

Is this a problem in linux-next or 3.12-rc7 and older kernels? What
userspace tool is breaking here?


greg k-h
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at