Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kobject: Restore old behaviour of kobject_del(NULL)
The commit 079ad2f ("kobject: Avoid premature parent object freeing in kobject_cleanup()") inadvertently dropped a possibility to call kobject_del() with NULL pointer. Restore the old behaviour. Fixes: 079ad2f ("kobject: Avoid premature parent object freeing in kobject_cleanup()") Cc: stable <[email protected]> Reported-by: Qu Wenruo <[email protected]> Cc: Heikki Krogerus <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information