Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
6f686574
Commit
6f686574
authored
Dec 09, 2011
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
... and the same kind of leak for mqueue
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
905ad269
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
ipc/mqueue.c
ipc/mqueue.c
+3
-5
ipc/msgutil.c
ipc/msgutil.c
+0
-5
No files found.
ipc/mqueue.c
View file @
6f686574
...
...
@@ -1269,7 +1269,7 @@ void mq_clear_sbinfo(struct ipc_namespace *ns)
void
mq_put_mnt
(
struct
ipc_namespace
*
ns
)
{
mntpu
t
(
ns
->
mq_mnt
);
kern_unmoun
t
(
ns
->
mq_mnt
);
}
static
int
__init
init_mqueue_fs
(
void
)
...
...
@@ -1291,11 +1291,9 @@ static int __init init_mqueue_fs(void)
spin_lock_init
(
&
mq_lock
);
init_ipc_ns
.
mq_mnt
=
kern_mount_data
(
&
mqueue_fs_type
,
&
init_ipc_ns
);
if
(
IS_ERR
(
init_ipc_ns
.
mq_mnt
))
{
error
=
PTR_ERR
(
init_ipc_ns
.
mq_mnt
);
error
=
mq_init_ns
(
&
init_ipc_ns
);
if
(
error
)
goto
out_filesystem
;
}
return
0
;
...
...
ipc/msgutil.c
View file @
6f686574
...
...
@@ -27,11 +27,6 @@ DEFINE_SPINLOCK(mq_lock);
*/
struct
ipc_namespace
init_ipc_ns
=
{
.
count
=
ATOMIC_INIT
(
1
),
#ifdef CONFIG_POSIX_MQUEUE
.
mq_queues_max
=
DFLT_QUEUESMAX
,
.
mq_msg_max
=
DFLT_MSGMAX
,
.
mq_msgsize_max
=
DFLT_MSGSIZEMAX
,
#endif
.
user_ns
=
&
init_user_ns
,
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment