From patchwork Wed May 25 19:45:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [MERGED] osmo-pcu[master]: tbf_ul: use correct size for chunk_size From: Holger Freyther X-Patchwork-Id: 78155 Message-Id: <20160525194551.AB1871336A@lists.osmocom.org> To: lynxis lazus Date: Wed, 25 May 2016 19:45:50 +0000 Holger Freyther has submitted this change and it was merged. Change subject: tbf_ul: use correct size for chunk_size ...................................................................... tbf_ul: use correct size for chunk_size The size of the hole array in bytes was used instead of the size of elements. Change-Id: If6bf3e5f1ad773ddaa9fb2ce7c069e6b26659cbf Reviewed-on: https://gerrit.osmocom.org/105 Tested-by: Jenkins Builder Reviewed-by: Holger Freyther --- M src/tbf_ul.cpp 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: Jenkins Builder: Verified Holger Freyther: Looks good to me, approved diff --git a/src/tbf_ul.cpp b/src/tbf_ul.cpp index 9e763f4..1316204 100644 --- a/src/tbf_ul.cpp +++ b/src/tbf_ul.cpp @@ -60,7 +60,7 @@ LOGP(DRLCMACUL, LOGL_DEBUG, "- Assembling frames: (len=%d)\n", len); num_frames = Decoding::rlc_data_from_ul_data( - rdbi, cs, data, &(frames[0]), sizeof(frames), + rdbi, cs, data, &(frames[0]), ARRAY_SIZE(frames), &dummy_tlli); /* create LLC frames */