doubt in do_brk code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In mmap.c
/* Check against existing mmap mappings. */
  if (find_vma_intersection(mm, oldbrk,
newbrk+PAGE_SIZE))
        goto out;
out:
    retval = mm->brk;
    up(&mm->mmap_sem);
    return retval; 

That is if an existing mmap exists in the 
break area we return the old break value.
So is this error to be handled by the code using brk()
example malloc. 
Should not an error like ENOMEM be sent?





__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux