2018-06-21 01:57:58

by Wei Yongjun

[permalink] [raw]
Subject: [PATCH -next] mqueue: fix a typo in mq_init_ns()

Fix a typo, use 'm' instead of 'ns->mq_mnt'.

Fixes: 5cd6a50ace05 ("ipc: Convert mqueue fs to fs_context")
Signed-off-by: Wei Yongjun <[email protected]>
---
ipc/mqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 833b8d7..0f10221 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -1620,7 +1620,7 @@ int mq_init_ns(struct ipc_namespace *ns)

m = mq_create_mount(&init_ipc_ns);
if (IS_ERR(m))
- return PTR_ERR(ns->mq_mnt);
+ return PTR_ERR(m);
ns->mq_mnt = m;
return 0;
}



2018-06-22 12:36:03

by David Howells

[permalink] [raw]
Subject: Re: [PATCH -next] mqueue: fix a typo in mq_init_ns()

Wei Yongjun <[email protected]> wrote:

> Fix a typo, use 'm' instead of 'ns->mq_mnt'.

I've folded this into the original patch, thanks.

David