diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-12-05 21:02:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-06 10:41:26 -0500 |
commit | f81cff0d4067e41fd7383d9c013cc82da7c169d2 (patch) | |
tree | 92c5c8a647e31be6b3e09dcce42ec261d43ad2f5 /drivers/net/ehea | |
parent | 3363c9b0ed8f6b5a241d63018cad242ae458cdf9 (diff) |
[PATCH] uclinux: fix mmap() of directory for nommu case
I was playing with blackfin when i hit a neat bug ... doing an open() on a
directory and then passing that fd to mmap() would cause the kernel to hang
after poking into the code a bit more, i found that
mm/nommu.c:validate_mmap_request() checks the length and if it is 0, just
returns the address ... this is in stark contrast to mmu's
mm/mmap.c:do_mmap_pgoff() where it returns -EINVAL for 0 length requests ...
i then noticed that some other parts of the logic is out of date between the
two funcs, so perhaps that's the easy fix ?
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/net/ehea')
0 files changed, 0 insertions, 0 deletions