diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2010-03-10 15:21:51 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-12 15:52:35 -0800 |
commit | dcefafb6ac90ece8d68a6c203105f3d313e52da4 (patch) | |
tree | c0aad5b135dc95f2aaa8d3c089a1ac44144ef424 /drivers/char/pty.c | |
parent | 2cb9a75d13676d75bcc6fbc6f885403795581913 (diff) |
/dev/mem: dont allow seek to last page
So as to return a uniform error -EOVERFLOW instead of a random one:
# kmem-seek 0xfffffffffffffff0
seek /dev/kmem: Device or resource busy
# kmem-seek 0xfffffffffffffff1
seek /dev/kmem: Block device required
Suggested by OGAWA Hirofumi.
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Reviewed-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/pty.c')
0 files changed, 0 insertions, 0 deletions