* Grzegorz Nosek ([email protected]) wrote:
> --- linux-2.6/fs/read_write.c~ 2005-10-06 21:35:03.000000000 +0200
> +++ linux-2.6/fs/read_write.c 2005-10-05 19:14:04.000000000 +0200
> @@ -719,7 +719,7 @@
> current->syscr++;
> current->syscw++;
>
> - if (*ppos > max)
> + if (ppos && *ppos > max)
> retval = -EOVERFLOW;
This doesn't make sense. ppos must not be NULL.
Code looks like this:
if (!ppos)
ppos = &in_file->f_pos;
...
pos = *ppos;
...
if (*ppos > max)
So it can't be NULL, and if somehow it were, the oops would've already
happened.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]