mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
Merge tag 'usb-6.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
Pull USB fix from Greg KH: "Here is a single USB fix for a much-reported regression for 6.6-rc1. It resolves a crash in the typec debugfs code for many systems. It's been in linux-next with no reported issues, and many people have reported it resolving their problem with 6.6-rc1" * tag 'usb-6.6-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: usb: typec: ucsi: Fix NULL pointer dereference
This commit is contained in:
@@ -84,6 +84,9 @@ void ucsi_debugfs_register(struct ucsi *ucsi)
|
||||
|
||||
void ucsi_debugfs_unregister(struct ucsi *ucsi)
|
||||
{
|
||||
if (IS_ERR_OR_NULL(ucsi) || !ucsi->debugfs)
|
||||
return;
|
||||
|
||||
debugfs_remove_recursive(ucsi->debugfs->dentry);
|
||||
kfree(ucsi->debugfs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user