[Bug 264472] ib_sysfs: use the correct unregister function
Date: Sun, 05 Jun 2022 12:32:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264472 Bug ID: 264472 Summary: ib_sysfs: use the correct unregister function Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: email@example.com Created attachment 234461 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234461&action=edit a possible patch In ib_device_register_sysfs, on the error path, device_unregister is called. device_register deletes the device, which will cause use after free. device_del should be called which undose device_add but not delete the device. -- You are receiving this mail because: You are the assignee for the bug.