freebsd_iflib: Also NULL-check ctx.

This commit is contained in:
waddlesplash 2019-10-10 20:32:57 -04:00
parent acc0180aac
commit fb8915c671

View File

@ -6158,7 +6158,7 @@ void
iflib_irq_free(if_ctx_t ctx, if_irq_t irq)
{
#ifdef __HAIKU__
if (!irq)
if (!ctx || !irq)
return;
#endif