Changeset c0697c4c in mainline for kernel/generic/src/mm/backend_elf.c


Ignore:
Timestamp:
2007-12-16T18:45:48Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2a3db79
Parents:
cb08279
Message:

Fix a bug in anonymous address space area sharing. Call the backend's share
function only if the source area is not already shared. Otherwise increment the
sh_info refcount. Without this fix, the kernel will try to recreate the pagemap
if three and more address space areas attempt to share the same data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/backend_elf.c

    rcb08279 rc0697c4c  
    305305                         */
    306306                        if (!(area->flags & AS_AREA_WRITE))
    307                                 if (base + count*PAGE_SIZE <= start_anon)
     307                                if (base + count * PAGE_SIZE <= start_anon)
    308308                                        continue;
    309309                       
Note: See TracChangeset for help on using the changeset viewer.