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

Commit fb3fce6d authored by Pratham Pratap's avatar Pratham Pratap Committed by Gerrit - the friendly Code Review server
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 63098a4e
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