Message ID | 20241128183509.23236-2-n.zhandarovich@fintech.ru (mailing list archive) |
---|---|
State | New |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Backport fix for CVE-2023-1075 | expand |
Context | Check | Description |
---|---|---|
netdev/tree_selection | success | Guessing tree name failed - patch did not apply |
diff --git a/include/net/tls.h b/include/net/tls.h index 7f220e03ebb2..e6836a5dfb6e 100644 --- a/include/net/tls.h +++ b/include/net/tls.h @@ -427,7 +427,7 @@ static inline bool is_tx_ready(struct tls_sw_context_tx *ctx) { struct tls_rec *rec; - rec = list_first_entry(&ctx->tx_list, struct tls_rec, list); + rec = list_first_entry_or_null(&ctx->tx_list, struct tls_rec, list); if (!rec) return false;