/dev/mem: allow rewinding
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 6 Apr 2010 21:35:01 +0000 (14:35 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 7 Apr 2010 15:38:04 +0000 (08:38 -0700)
commitee5d2acd5ca1534f40e06d4f0d41a940b17beb54
tree4f4e06c3481835f67085ae79294829a2946f7df2
parentb1dd3b2843b3b73b7fc2ee47d96310cd1c051371
/dev/mem: allow rewinding

commit dcefafb6 ("/dev/mem: dont allow seek to last page") inadvertently
disabled rewinding on /dev/mem.

This broke x86info for example.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-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>
drivers/char/mem.c