The patch titled /dev/mem: allow rewinding has been removed from the -mm tree. Its filename was dev-mem-allow-rewinding.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: /dev/mem: allow rewinding From: Eric Dumazet <eric.dumazet@xxxxxxxxx> 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@xxxxxxxxx> Acked-by: Wu Fengguang <fengguang.wu@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/char/mem.c | 5 ----- 1 file changed, 5 deletions(-) diff -puN drivers/char/mem.c~dev-mem-allow-rewinding drivers/char/mem.c --- a/drivers/char/mem.c~dev-mem-allow-rewinding +++ a/drivers/char/mem.c @@ -710,11 +710,6 @@ static loff_t memory_lseek(struct file * switch (orig) { case SEEK_CUR: offset += file->f_pos; - if ((unsigned long long)offset < - (unsigned long long)file->f_pos) { - ret = -EOVERFLOW; - break; - } case SEEK_SET: /* to avoid userland mistaking f_pos=-9 as -EBADF=-9 */ if ((unsigned long long)offset >= ~0xFFFULL) { _ Patches currently in -mm which might be from eric.dumazet@xxxxxxxxx are origin.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html