-
Notifications
You must be signed in to change notification settings - Fork 2k
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
gnrc_ndp_internal: add missing unlock when the pktbuf is full (Backport) #4569
gnrc_ndp_internal: add missing unlock when the pktbuf is full (Backport) #4569
Conversation
ACK and go, when travis is happy. |
@@ -484,6 +485,7 @@ void gnrc_ndp_internal_send_rtr_adv(kernel_pid_t iface, ipv6_addr_t *src, ipv6_a | |||
&ctx->prefix, pkt); | |||
if (hdr == NULL) { | |||
DEBUG("ndp rtr: error allocating 6CO\n"); | |||
mutex_unlock(&ipv6_iface->mutex); | |||
gnrc_pktbuf_release(pkt); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the 1st diff'd line the order is gnrc_pktbuf_release then mutex_unlock.
In the latter two lines the order is reversed.
Is this intentional / correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed this with @authmillenon. The order should be irrelevant in this case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, just wanted to make sure. :)
403b2e8
to
348fa68
Compare
rebased to include the |
Squashed a commit by Cenk Gündoğan <cnkgndgn@gmail.com>.
348fa68
to
f25235d
Compare
Travis agrees - GO |
gnrc_ndp_internal: add missing unlock when the pktbuf is full (Backport)
Backport of #4533 (Thanks to @Yonezawa-T2)