use kstrtol_from_user in dni_dps460 driver #151
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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]