summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/include/comm/msgb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/firmware/include/comm/msgb.h')
-rw-r--r--src/target/firmware/include/comm/msgb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/firmware/include/comm/msgb.h b/src/target/firmware/include/comm/msgb.h
index f7c9d147..d9d518e8 100644
--- a/src/target/firmware/include/comm/msgb.h
+++ b/src/target/firmware/include/comm/msgb.h
@@ -82,7 +82,7 @@ static inline unsigned char *msgb_pull(struct msgb *msgb, unsigned int len)
}
static inline int msgb_tailroom(const struct msgb *msgb)
{
- return (msgb->data + msgb->data_len) - msgb->tail;
+ return (msgb->head + msgb->data_len) - msgb->tail;
}
/* increase the headroom of an empty msgb, reducing the tailroom */