commit | fb3fce6d64a3d6749140d1ddd41f88e10087aca4 | [log] [tgz] |
---|---|---|
author | Pratham Pratap <prathampratap@codeaurora.org> | Tue Jun 12 11:20:18 2018 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Jun 19 02:27:16 2018 -0700 |
tree | d46e4cde4f50fa3b1576e250c7603b1a6df7d628 | |
parent | 63098a4ec6538db624be9cf01265464e0d791bbb [diff] |
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: Pratham Pratap <prathampratap@codeaurora.org>