tests/ieee802154: Fix a null pointer deferencing
Jira: ZEP-2331 Reported-by Andrew Boie <andrew.p.boie@intel.com> Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
parent
be003be10a
commit
b07f20c143
1 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,10 @@ static int fake_set_txpower(struct device *dev, s16_t dbm)
|
|||
|
||||
static inline void insert_frag_dummy_way(struct net_pkt *pkt)
|
||||
{
|
||||
if (!current_pkt) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (current_pkt->frags) {
|
||||
struct net_buf *frag, *prev_frag = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue