]> Git Repo - linux.git/blobdiff - fs/nilfs2/ioctl.c
Merge branch 'x86/cleanups' into perf/uprobes
[linux.git] / fs / nilfs2 / ioctl.c
index 886649627c3d68d568914ee3d88983cbebcf08a5..2a70fce70c65be1151783e3aba3c221e39642ba7 100644 (file)
@@ -603,6 +603,8 @@ static int nilfs_ioctl_clean_segments(struct inode *inode, struct file *filp,
        nsegs = argv[4].v_nmembs;
        if (argv[4].v_size != argsz[4])
                goto out;
+       if (nsegs > UINT_MAX / sizeof(__u64))
+               goto out;
 
        /*
         * argv[4] points to segment numbers this ioctl cleans.  We
This page took 0.023944 seconds and 4 git commands to generate.