mtd: mtdchar: return expected errors on mmap() call
authorVladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Mon, 28 Oct 2013 16:08:15 +0000 (18:08 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Mon, 11 Nov 2013 19:18:15 +0000 (11:18 -0800)
commitb99959323732ed0c81da2488252f64c02ad37fbe
tree87052576102b76978079a176af3c582bff072b3d
parent80bd33acdaa21fafa8ff4391ccdf879d227111bb
mtd: mtdchar: return expected errors on mmap() call

According both to POSIX.1-2008 and Linux Programmer's Manual mmap()
syscall shouldn't return undocumented ENOSYS, this change replaces
the errno with more appropriate ENODEV and EACCESS.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Cc: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtdchar.c
This page took 0.02511 seconds and 5 git commands to generate.