fix(nimble): Address mbuf from different chains traversal during copying

This commit is contained in:
Rahul Tank
2025-10-03 14:24:13 +05:30
parent 94d14eded8
commit 91b8591f05
+3 -2
View File
@@ -513,12 +513,13 @@ os_mbuf_dup(struct os_mbuf *om)
struct os_mbuf *head;
struct os_mbuf *copy;
omp = om->om_omp;
head = NULL;
copy = NULL;
for (; om != NULL; om = SLIST_NEXT(om, om_next)) {
omp = om->om_omp;
if (head) {
SLIST_NEXT(copy, om_next) = os_mbuf_get(omp,
OS_MBUF_LEADINGSPACE(om));