pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmo-gprs/+/31342 )

 (

1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted 
one.
 )Change subject: rlcmac: llc_queue: Fix access to null msgb during dequeue
......................................................................

rlcmac: llc_queue: Fix access to null msgb during dequeue

Change-Id: I513aaef6ad0f44b5a6d32be512bdd8b4fdabb4e7
---
M src/rlcmac/llc_queue.c
1 file changed, 12 insertions(+), 1 deletion(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified




diff --git a/src/rlcmac/llc_queue.c b/src/rlcmac/llc_queue.c
index 2643b66..2c1aeea 100644
--- a/src/rlcmac/llc_queue.c
+++ b/src/rlcmac/llc_queue.c
@@ -207,7 +207,9 @@
                       "new_queue_size=%zu\n", frames, octets, 
gprs_rlcmac_llc_queue_size(q));
        }

-       msgb_pull_to_l2(msg);
+       if (!msg)
+               return NULL;

+       msgb_pull_to_l2(msg);
        return msg;
 }

--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/31342
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I513aaef6ad0f44b5a6d32be512bdd8b4fdabb4e7
Gerrit-Change-Number: 31342
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to