> + if (len > TASK_SIZE) > + return -ENOMEM; Shouldn't that be addr+len instead? The check looks incomplete otherwise. And you meant ">=" I guess?
> - /* Paranoia, caller should have dealt with this */ > - BUG_ON((addr + len) > 0x100000000UL); > - Any real reason to remove the paranoia check? If it's trivially always satisfied, the compiler will get rid of it for you :-) Cheers, Segher ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Libhugetlbfs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel
