Skip to content

Commit cce67b6

Browse files
committed
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
2 parents 205d049 + f26a679 commit cce67b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/usb/typec/ucsi/debugfs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ void ucsi_debugfs_register(struct ucsi *ucsi)
8484

8585
void ucsi_debugfs_unregister(struct ucsi *ucsi)
8686
{
87+
if (IS_ERR_OR_NULL(ucsi) || !ucsi->debugfs)
88+
return;
89+
8790
debugfs_remove_recursive(ucsi->debugfs->dentry);
8891
kfree(ucsi->debugfs);
8992
}

0 commit comments

Comments
 (0)