[gprs] sndcp: Fix call to msgb_alloc_headroom to have both head&tail room

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2010-06-09 20:56:52 +02:00 committed by Harald Welte
parent 5914bad40b
commit eda125ca51
1 changed files with 2 additions and 2 deletions

View File

@ -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;