commit | 726e4d16940fc1437710d5f8d10253980b433f57 | [log] [tgz] |
---|---|---|
author | Xiaobo Liu <cppcoffee@gmail.com> | Fri Oct 14 10:05:40 2022 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Nov 03 23:50:51 2022 +0900 |
tree | 3ea4ced5823b3865faf4dba41033a0a76a94466f | |
parent | 0b127ae537f9a57a088b74a7e279f305c4caa94e [diff] |
net/atm: fix proc_mpc_write incorrect return value [ Upstream commit d8bde3bf7f82dac5fc68a62c2816793a12cafa2a ] Then the input contains '\0' or '\n', proc_mpc_write has read them, so the return value needs +1. Fixes: 1da177e4c3f4 ("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>