[MTD] mtdchar: Return EINVAL for bad seeks instead of fixing up to valid byte
commit8b491d750885ebe8e7d385ce4186c85957d67123
authorTodd Poynor <tpoynor@mvista.com>
Thu, 4 Aug 2005 01:05:51 +0000 (4 02:05 +0100)
committerThomas Gleixner <tglx@mtd.linutronix.de>
Thu, 4 Aug 2005 10:52:40 +0000 (4 12:52 +0200)
tree18c7eb52bfc8821eaf08430fdaa5ce70078f2200
parent1da2c9a638f8af7be3daf1fa8dbd087b3284d16e
[MTD] mtdchar: Return EINVAL for bad seeks instead of fixing up to valid byte

mtdchar return -EINVAL for seek prior to offset 0 or to beyond the last
byte in the device/partition, similar to various other seek methods,
instead of fixing up to first or last byte.

Signed-off-by: Todd Poynor <tpoynor@mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/mtdchar.c