ksmbd: fix kernel-doc comment of ksmbd_vfs_kern_path_locked()
[platform/kernel/linux-starfive.git] / fs / coredump.c
index 88740c5..9d235fa 100644 (file)
@@ -648,7 +648,7 @@ void do_coredump(const kernel_siginfo_t *siginfo)
        } else {
                struct mnt_idmap *idmap;
                struct inode *inode;
-               int open_flags = O_CREAT | O_RDWR | O_NOFOLLOW |
+               int open_flags = O_CREAT | O_WRONLY | O_NOFOLLOW |
                                 O_LARGEFILE | O_EXCL;
 
                if (cprm.limit < binfmt->min_coredump)