net/atm: fix proc_mpc_write incorrect return value
stable inclusion from stable-v5.10.152 commit 118f412bedc5843032d65f41eb4e635a830c2fa8 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I73HJ0 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=118f412bedc5843032d65f41eb4e635a830c2fa8 -------------------------------- [ Upstream commit d8bde3bf ] Then the input contains '\0' or '\n', proc_mpc_write has read them, so the return value needs +1. Fixes: 1da177e4 ("Linux-2.6.12-rc2") Signed-off-by:Xiaobo Liu <cppcoffee@gmail.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Lipeng Sang <sanglipeng1@jd.com>
Loading
Please sign in to comment