Commit 6f0adbba authored by Wentao Wang's avatar Wentao Wang Committed by Xie XiuQi
Browse files

Disable kgdboc failed by echo space to /sys/module/kgdboc/parameters/kgdboc



commit 3ec80029 upstream.

Echo "" to /sys/module/kgdboc/parameters/kgdboc will fail with "No such
device” error.

This is caused by function "configure_kgdboc" who init err to ENODEV
when the config is empty (legal input) the code go out with ENODEV
returned.

Fixes: 2dd45316 ("kgdboc: Fix restrict error")
Signed-off-by: default avatarWentao Wang <witallwang@gmail.com>
Cc: stable <stable@vger.kernel.org>
Acked-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 695af5bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment