Change in libosmo-gprs[master]: rlcmac: llc_queue: Fix access to null msgb during dequeue
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/31342 ) 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, 3 insertions(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/libosmo-gprs refs/changes/42/31342/1 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: 1 Gerrit-Owner: pespin <pespin@sysmocom.de> Gerrit-MessageType: newchange
participants (1)
-
pespin