mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
19611: sys/net/rpl: fix possible NULL dereference r=benpicco a=maribu ### Contribution description As the title says 19640: core/thread: drop unused thread_arch_t r=benpicco a=maribu ### Contribution description No architecture makes use of thread_arch_t anymore, so let's drop it. Co-authored-by: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
This commit is contained in:
commit
dc0fe5283f
@ -122,7 +122,6 @@
|
||||
#include "clist.h"
|
||||
#include "cib.h"
|
||||
#include "msg.h"
|
||||
#include "cpu_conf.h"
|
||||
#include "sched.h"
|
||||
#include "thread_config.h"
|
||||
|
||||
@ -207,9 +206,6 @@ struct _thread {
|
||||
#ifdef PICOLIBC_TLS
|
||||
void *tls; /**< thread local storage ptr */
|
||||
#endif
|
||||
#ifdef HAVE_THREAD_ARCH_T
|
||||
thread_arch_t arch; /**< architecture dependent part */
|
||||
#endif
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -20,6 +20,8 @@
|
||||
#ifndef THREAD_ARCH_H
|
||||
#define THREAD_ARCH_H
|
||||
|
||||
#include "cpu_conf.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -1231,7 +1231,7 @@ void gnrc_rpl_recv_DAO_ACK(gnrc_rpl_dao_ack_t *dao_ack, kernel_pid_t iface, ipv6
|
||||
#endif
|
||||
|
||||
if (!IS_ACTIVE(CONFIG_GNRC_RPL_WITHOUT_VALIDATION)) {
|
||||
if (!gnrc_rpl_validation_DAO_ACK(dao_ack, len, dst)) {
|
||||
if (!dst || !gnrc_rpl_validation_DAO_ACK(dao_ack, len, dst)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user