Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/rpmsg: set conn->backlog=-1 only when socket listening #10661

Merged
merged 1 commit into from Sep 18, 2023

Conversation

yintao707
Copy link

Summary

net/rpmsg: set conn->backlog=-1 only when socket listening

Impact

Testing

Signed-off-by: yintao <yintao@xiaomi.com>
@@ -402,7 +402,7 @@ static inline void rpmsg_socket_destroy_ept(

if (conn->ept.rdev)
{
if (conn->backlog)
if (conn->backlog > 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah. that is why I comment mostly at each PR I review that comparison condition should be specified and if (a) should be used only when a is bool. I had to investigate many bugs like this that could be avoided by using an explicit comparison condition. Anyway LGTM!

@pkarashchenko
Copy link
Contributor

Please rebased to fix CI

@xiaoxiang781216 xiaoxiang781216 merged commit 89329df into apache:master Sep 18, 2023
24 of 26 checks passed
@jerpelea jerpelea added this to To-Add in Release Notes - 12.3.0 Sep 26, 2023
@jerpelea jerpelea moved this from To-Add to net in Release Notes - 12.3.0 Sep 27, 2023
@jerpelea jerpelea moved this from net to done in Release Notes - 12.3.0 Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants