From aff6b0b3d13ca2032613799f1bd3b8b9282b604d Mon Sep 17 00:00:00 2001 From: Vinayak Kariappa Chettimada Date: Mon, 1 Feb 2021 07:42:52 +0530 Subject: [PATCH] Bluetooth: controller: Add Tx fragmentation assertion Added Tx fragmentation implementation assertion to check invalid offset use due to any memory corruptions. Signed-off-by: Vinayak Kariappa Chettimada --- subsys/bluetooth/controller/ll_sw/nordic/lll/lll_conn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_conn.c b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_conn.c index a9af12dcea372..9d5f9057bc1dd 100644 --- a/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_conn.c +++ b/subsys/bluetooth/controller/ll_sw/nordic/lll/lll_conn.c @@ -755,6 +755,8 @@ static inline int isr_rx_pdu(struct lll_conn *lll, struct pdu_data *pdu_data_rx, *tx_release = tx; FORCE_MD_CNT_SET(); + } else { + LL_ASSERT(0); } if (IS_ENABLED(CONFIG_BT_CENTRAL) && !lll->role &&