* [PATCH] ipc: mqueue: remove assignment from IS_ERR argument
@ 2024-07-08 8:04 Chen Ni
2024-07-09 4:48 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: Chen Ni @ 2024-07-08 8:04 UTC (permalink / raw)
To: jlayton, brauner, jack; +Cc: linux-kernel, Chen Ni
Remove assignment from IS_ERR() argument.
This is detected by coccinelle.
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
---
ipc/mqueue.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 5eea4dc0509e..a7cbd69efbef 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -903,7 +903,8 @@ static int do_mq_open(const char __user *u_name, int oflag, umode_t mode,
audit_mq_open(oflag, mode, attr);
- if (IS_ERR(name = getname(u_name)))
+ name = getname(u_name);
+ if (IS_ERR(name))
return PTR_ERR(name);
fd = get_unused_fd_flags(O_CLOEXEC);
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ipc: mqueue: remove assignment from IS_ERR argument
2024-07-08 8:04 [PATCH] ipc: mqueue: remove assignment from IS_ERR argument Chen Ni
@ 2024-07-09 4:48 ` Christian Brauner
0 siblings, 0 replies; 2+ messages in thread
From: Christian Brauner @ 2024-07-09 4:48 UTC (permalink / raw)
To: jlayton, jack, Chen Ni; +Cc: Christian Brauner, linux-kernel
On Mon, 08 Jul 2024 16:04:04 +0800, Chen Ni wrote:
> Remove assignment from IS_ERR() argument.
> This is detected by coccinelle.
>
>
Applied to the vfs.misc branch of the vfs/vfs.git tree.
Patches in the vfs.misc branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs.misc
[1/1] ipc: mqueue: remove assignment from IS_ERR argument
https://git.kernel.org/vfs/vfs/c/b80cc4df1124
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-09 4:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-08 8:04 [PATCH] ipc: mqueue: remove assignment from IS_ERR argument Chen Ni
2024-07-09 4:48 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®