Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.24.4 /fs/ncpfs/mmap.c

Filename:/fs/ncpfs/mmap.c
Lines Added:0
Lines Deleted:4
Also changed in: (Previous) 2.6.24.2  2.6.24-git22  2.6.24-git21  2.6.24-git20  2.6.24.1  2.6.24-git19 
(Following) 2.6.24.5  2.6.24.6  2.6.24.7  2.6.25-rc7  2.6.25-rc8  2.6.25-rc9 

Location
[  2.6.24.4
  [  fs
    [  ncpfs
       o  mmap.c

Patch

diff --git a/fs/ncpfs/mmap.c b/fs/ncpfs/mmap.c
index a94473d..5d8dcb9 100644
--- a/fs/ncpfs/mmap.c
+++ b/fs/ncpfs/mmap.c
@@ -50,10 +50,6 @@ static int ncp_file_mmap_fault(struct vm_area_struct *area,
    pos = vmf->pgoff << PAGE_SHIFT;
 
    count = PAGE_SIZE;
-   if ((unsigned long)vmf->virtual_address + PAGE_SIZE > area->vm_end) {
-      WARN_ON(1); /* shouldn't happen? */
-      count = area->vm_end - (unsigned long)vmf->virtual_address;
-   }
    /* what we can read in one go */
    bufsize = NCP_SERVER(inode)->buffer_size;
 


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.