Skip to content

use kstrtol_from_user in dni_dps460 driver#151

Merged
lguohan merged 1 commit intosonic-net:masterfrom
lguohan:dps460
Jul 10, 2020
Merged

use kstrtol_from_user in dni_dps460 driver#151
lguohan merged 1 commit intosonic-net:masterfrom
lguohan:dps460

Conversation

@lguohan
Copy link
Copy Markdown
Contributor

@lguohan lguohan commented Jul 9, 2020

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 lguohan@gmail.com

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 <lguohan@gmail.com>
@lguohan lguohan merged commit d155c1e into sonic-net:master Jul 10, 2020
@lguohan lguohan deleted the dps460 branch July 10, 2020 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Console shows Kernel crash during boot up with Mater debug image .339 on Dell S6000-ACS/S6000

1 participant