Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use kstrtol_from_user in dni_dps460 driver
To avoid following kernel crash: [ 34.668610] Call Trace: [ 34.697843] __mutex_add_waiter+0x23/0x50 [ 34.745783] __mutex_lock.isra.8+0x1d1/0x4a0 [ 34.796846] ? __handle_mm_fault+0xa83/0x1270 [ 34.848948] ? _kstrtoull+0x3b/0x90 [ 34.890657] set_target+0x95/0xf0 [dni_dps460] [ 34.943797] kernfs_fop_write+0x116/0x190 [ 34.991740] vfs_write+0xa5/0x1a0 [ 35.031363] ksys_write+0x57/0xd0 [ 35.070990] do_syscall_64+0x53/0x110 [ 35.114773] entry_SYSCALL_64_after_hwframe+0x44/0xa9 Signed-off-by: Guohan Lu <[email protected]>
- Loading branch information