diff options
| author | Siqi Lin <siqilin@google.com> | 2017-05-22 16:48:03 -0700 |
|---|---|---|
| committer | Siqi Lin <siqilin@google.com> | 2017-05-23 09:49:40 -0700 |
| commit | 5ee8e3257d74a51887c9bc656e960332b985e540 (patch) | |
| tree | f2cbf7dc8e90208c40214d09761c79251f5aeefd /lib/timerqueue.c | |
| parent | 7c087368b8b44089ac432f69751a764f9e027cbf (diff) | |
leds: qpnp-flash: Fix copy_from_user check in flash_led_dfs_fault_reg_enable
flash_led_dfs_fault_reg_enable() checks the copy_from_user() return
value incorrectly and returns -EFAULT if the return value is 0.
-EFAULT should only be returned if copy_to_user() returns > 0 which
means the userspace buffer was only partially copied.
Bug: 38022758
Change-Id: Ib87c469aebac623193f38a48d259b8e03193c2e1
Signed-off-by: Siqi Lin <siqilin@google.com>
Diffstat (limited to 'lib/timerqueue.c')
0 files changed, 0 insertions, 0 deletions
