diff options
author | Zijun Hu <[email protected]> | 2024-07-27 16:34:01 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2024-07-31 14:55:49 +0200 |
commit | bfa54a793ba77ef696755b66f3ac4ed00c7d1248 (patch) | |
tree | cbbb1732b884220a22278ef6ce3d4b7fdd7a6002 /rust/helpers/workqueue.c | |
parent | 2bdf3b83515ead3b3fdf93610e4a3bb9a89bc852 (diff) |
driver core: bus: Fix double free in driver API bus_register()
For bus_register(), any error which happens after kset_register() will
cause that @priv are freed twice, fixed by setting @priv with NULL after
the first free.
Signed-off-by: Zijun Hu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions