]> err.no Git - linux-2.6/blobdiff - drivers/mtd/mtdchar.c
V4L/DVB (4296): Remove stradis MODULE_DEVICE_INFO definition
[linux-2.6] / drivers / mtd / mtdchar.c
index aa18d45b264bb2d3aef9c71792401ac1d7ccece5..fb8b4f7e48d3a14a295f5661b9014908f1110dd4 100644 (file)
@@ -5,7 +5,6 @@
  *
  */
 
-#include <linux/config.h>
 #include <linux/device.h>
 #include <linux/fs.h>
 #include <linux/init.h>
@@ -78,7 +77,7 @@ static loff_t mtd_lseek (struct file *file, loff_t offset, int orig)
                return -EINVAL;
        }
 
-       if (offset >= 0 && offset < mtd->size)
+       if (offset >= 0 && offset <= mtd->size)
                return file->f_pos = offset;
 
        return -EINVAL;