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
5e095e8b
Commit
5e095e8b
authored
Dec 14, 2009
by
Sage Weil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: plug msg leak in con_fault
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
c86a2930
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
fs/ceph/messenger.c
fs/ceph/messenger.c
+7
-2
No files found.
fs/ceph/messenger.c
View file @
5e095e8b
...
@@ -1434,8 +1434,9 @@ static int read_partial_message(struct ceph_connection *con)
...
@@ -1434,8 +1434,9 @@ static int read_partial_message(struct ceph_connection *con)
*/
*/
static
void
process_message
(
struct
ceph_connection
*
con
)
static
void
process_message
(
struct
ceph_connection
*
con
)
{
{
struct
ceph_msg
*
msg
=
con
->
in_msg
;
struct
ceph_msg
*
msg
;
msg
=
con
->
in_msg
;
con
->
in_msg
=
NULL
;
con
->
in_msg
=
NULL
;
/* if first message, set peer_name */
/* if first message, set peer_name */
...
@@ -1810,7 +1811,11 @@ static void ceph_fault(struct ceph_connection *con)
...
@@ -1810,7 +1811,11 @@ static void ceph_fault(struct ceph_connection *con)
clear_bit
(
BUSY
,
&
con
->
state
);
/* to avoid an improbable race */
clear_bit
(
BUSY
,
&
con
->
state
);
/* to avoid an improbable race */
con_close_socket
(
con
);
con_close_socket
(
con
);
con
->
in_msg
=
NULL
;
if
(
con
->
in_msg
)
{
ceph_msg_put
(
con
->
in_msg
);
con
->
in_msg
=
NULL
;
}
/* If there are no messages in the queue, place the connection
/* If there are no messages in the queue, place the connection
* in a STANDBY state (i.e., don't try to reconnect just yet). */
* in a STANDBY state (i.e., don't try to reconnect just yet). */
...
...
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