On Tue, Aug 26, 2025 at 8:35 AM Eelco Chaudron via dev <
ovs-dev@openvswitch.org> wrote:

> Coverity reported a possible null dereference of ctx->db
> inside the event processing loop in ovsdb_relay_run().
>
> In practice, ctx->db is guaranteed to be non-NULL for valid relay_ctx
> structures. Adding ovs_assert(ctx->db) documents this invariant and
> ensures debug builds catch any misuse.
>
> No change in runtime behavior; this only improves code safety and
> satisfies static analysis.
>
> Signed-off-by: Eelco Chaudron <echau...@redhat.com>
> ---


Acked-by: Mike Pattrick <m...@redhat.com>
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to