file->f_pos =mtd->size + offset; 
offset += mtd->size; 
static loff_t mtd_lseek (struct file *file, loff_t offset, int orig){	struct mtd_info *mtd = TO_MTD(file);	switch (orig) {	case 0:		/* SEEK_SET */		file->f_pos = offset;		break;	case 1:		/* SEEK_CUR */		file->f_pos += offset;		break;	case 2:		/* SEEK_END */		file->f_pos =mtd->size + offset;		break;	default:		return -EINVAL;	}	if (file->f_pos < 0)		file->f_pos = 0;	else if (file->f_pos >= mtd->size)		file->f_pos = mtd->size - 1;	return file->f_pos;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/8b491d750885ebe8e7d385ce4186c85957d67123/mtdchar.c/buggy/drivers/mtd/mtdchar.c