In the Linux kernel, the following vulnerability has been resolved:
driver core: bus: Fix double free in driver API bus_register()
For busregister(), any error which happens after ksetregister() will cause that @priv are freed twice, fixed by setting @priv with NULL after the first free.