Hi Michael,
On Fri, Sep 21, 2018 at 11:49:23AM +0200, Michael Gebhard wrote:
> This reverts commit c9359f416207 ("usb: typec: fusb302: Fix debugfs issue")
>
> Removing <rootdir> debugfs directory leaves <rootdir> pointing at
> freed memory. The next subsequent call to fusb302_probe() causes a
> NULL pointer derenference in debugfs_create_file() in
> fusb302_debugfs_init(). This problem occurs, since <rootdir> is not
> only removed when unloading the driver, but also when fusb302_probe()
> fails or the link to a device is dropped.
Try this patch:
https://patchwork.kernel.org/patch/10607509/
It should fix the broblem. Let us know if it works.
Thanks,
--
heikki