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

Commit 6b99f1dc authored by Pratham Pratap's avatar Pratham Pratap
Browse files

usb: f_mtp: Update module parameters only during function bind



Module parameters can be updated through userspace which
can lead to out-of-bound access if unallocated memory is
accessed by the driver. This change prevents out-of-bound
access by updating the module parameters only when
mtp_function_bind is called.

Change-Id: I8c3d9ee64fe194f243dd74b093e72bca1cd05c47
Signed-off-by: default avatarPratham Pratap <prathampratap@codeaurora.org>
parent af4bdc7b
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