From eda125ca5142b6321ea7c18cfad24116f2c29ae2 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Wed, 9 Jun 2010 20:56:52 +0200 Subject: [PATCH] [gprs] sndcp: Fix call to msgb_alloc_headroom to have both head&tail room Signed-off-by: Sylvain Munaut --- openbsc/src/gprs/gprs_sndcp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openbsc/src/gprs/gprs_sndcp.c b/openbsc/src/gprs/gprs_sndcp.c index b03979ab3..843332686 100644 --- a/openbsc/src/gprs/gprs_sndcp.c +++ b/openbsc/src/gprs/gprs_sndcp.c @@ -182,7 +182,7 @@ static int defrag_segments(struct sndcp_entity *sne) unsigned int seg_nr; uint8_t *npdu; - msg = msgb_alloc_headroom(sne->defrag.tot_len+128, 128, "SNDCP Defrag"); + msg = msgb_alloc_headroom(sne->defrag.tot_len+256, 128, "SNDCP Defrag"); if (!msg) return -ENOMEM; @@ -379,7 +379,7 @@ static int sndcp_send_ud_frag(struct sndcp_frag_state *fs) uint8_t *data; int rc, more; - fmsg = msgb_alloc_headroom(fs->sne->lle->params.n201_u+128, 128, + fmsg = msgb_alloc_headroom(fs->sne->lle->params.n201_u+256, 128, "SNDCP Frag"); if (!fmsg) return -ENOMEM;