aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2010-06-09 20:56:52 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-10 15:15:42 +0200
commiteda125ca5142b6321ea7c18cfad24116f2c29ae2 (patch)
tree4a411163771298ca17dccc04b8175120be7cab19 /openbsc/src/gprs
parent5914bad40ba49cdf39a72cf8db5b492ca318cd38 (diff)
[gprs] sndcp: Fix call to msgb_alloc_headroom to have both head&tail room
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc/src/gprs')
-rw-r--r--openbsc/src/gprs/gprs_sndcp.c4
1 files 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;