Loading ipc/shm.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -491,10 +491,10 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params) sprintf (name, "SYSV%08x", key); sprintf (name, "SYSV%08x", key); if (shmflg & SHM_HUGETLB) { if (shmflg & SHM_HUGETLB) { struct hstate *hs = hstate_sizelog((shmflg >> SHM_HUGE_SHIFT) struct hstate *hs; & SHM_HUGE_MASK); size_t hugesize; size_t hugesize; hs = hstate_sizelog((shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK); if (!hs) { if (!hs) { error = -EINVAL; error = -EINVAL; goto no_file; goto no_file; Loading mm/mmap.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -1368,9 +1368,9 @@ SYSCALL_DEFINE6(mmap_pgoff, unsigned long, addr, unsigned long, len, goto out_fput; goto out_fput; } else if (flags & MAP_HUGETLB) { } else if (flags & MAP_HUGETLB) { struct user_struct *user = NULL; struct user_struct *user = NULL; struct hstate *hs = hstate_sizelog((flags >> MAP_HUGE_SHIFT) & struct hstate *hs; SHM_HUGE_MASK); hs = hstate_sizelog((flags >> MAP_HUGE_SHIFT) & SHM_HUGE_MASK); if (!hs) if (!hs) return -EINVAL; return -EINVAL; Loading Loading
ipc/shm.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -491,10 +491,10 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params) sprintf (name, "SYSV%08x", key); sprintf (name, "SYSV%08x", key); if (shmflg & SHM_HUGETLB) { if (shmflg & SHM_HUGETLB) { struct hstate *hs = hstate_sizelog((shmflg >> SHM_HUGE_SHIFT) struct hstate *hs; & SHM_HUGE_MASK); size_t hugesize; size_t hugesize; hs = hstate_sizelog((shmflg >> SHM_HUGE_SHIFT) & SHM_HUGE_MASK); if (!hs) { if (!hs) { error = -EINVAL; error = -EINVAL; goto no_file; goto no_file; Loading
mm/mmap.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -1368,9 +1368,9 @@ SYSCALL_DEFINE6(mmap_pgoff, unsigned long, addr, unsigned long, len, goto out_fput; goto out_fput; } else if (flags & MAP_HUGETLB) { } else if (flags & MAP_HUGETLB) { struct user_struct *user = NULL; struct user_struct *user = NULL; struct hstate *hs = hstate_sizelog((flags >> MAP_HUGE_SHIFT) & struct hstate *hs; SHM_HUGE_MASK); hs = hstate_sizelog((flags >> MAP_HUGE_SHIFT) & SHM_HUGE_MASK); if (!hs) if (!hs) return -EINVAL; return -EINVAL; Loading