X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=mm%2Fmemfd.c;h=69b90c31d38cedb03d7e387ae2b7eb976128df8e;hb=df2aac1573b57cde4475b587fbb22e1256080bac;hp=a0a7a37e81771b38549f2f0b0d3d5f63cdeed587;hpb=04a357b1f6f0b6f7c8689361fa8802e8e35d02ad;p=platform%2Fkernel%2Flinux-starfive.git diff --git a/mm/memfd.c b/mm/memfd.c index a0a7a37..69b90c3 100644 --- a/mm/memfd.c +++ b/mm/memfd.c @@ -243,16 +243,12 @@ static int memfd_get_seals(struct file *file) return seals ? *seals : -EINVAL; } -long memfd_fcntl(struct file *file, unsigned int cmd, unsigned long arg) +long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg) { long error; switch (cmd) { case F_ADD_SEALS: - /* disallow upper 32bit */ - if (arg > UINT_MAX) - return -EINVAL; - error = memfd_add_seals(file, arg); break; case F_GET_SEALS: