Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 2c5ce838 authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: gadget: f_cdev: Fix memory leak in creating debugfs dir



Driver creates two instances dun and nmea and saves debugfs
dir handle into a global variable i.e. debugfs.debugfs_root.
As a result debugfs_root gets overwritten when second instance
gets created. Fix this issue by saving debugfs dir handle to
cdev instance.

Change-Id: Id4295f021582a0ba677e37755b8bf27656fbcb6f
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent d46b9e1d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment