fix msgb_talroom() calculation
This commit is contained in:
parent
f7d797424a
commit
ac778fb85d
|
@ -103,7 +103,7 @@ static inline unsigned char *msgb_pull(struct msgb *msgb, unsigned int len)
|
||||||
}
|
}
|
||||||
static inline int msgb_tailroom(const struct msgb *msgb)
|
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 */
|
/* increase the headroom of an empty msgb, reducing the tailroom */
|
||||||
|
|
Loading…
Reference in New Issue