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: [email protected]
Reporter: [email protected]
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.