[Bug 293307] if_rge detach cleanup for crash when error occurs during attach

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 22 Feb 2026 18:08:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293307

--- Comment #5 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=d5ca52182e522a192d0c8fbdaa438f50e200082f

commit d5ca52182e522a192d0c8fbdaa438f50e200082f
Author:     John <john@cybersashi.com>
AuthorDate: 2026-02-22 18:06:39 +0000
Commit:     Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2026-02-22 18:07:29 +0000

    rge: fix callout setup/teardown; handle invalid ethernet address

    * Do the callout init early; since some of the teardown path expects
      the callout to be valid

    * Handle an invalid ethernet address by generating a local one.

    PR:     kern/293307

    Reviewed by:    zlei
    Differential Revision:  https://reviews.freebsd.org/D55419

 sys/dev/rge/if_rge.c | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.