]> git.baikalelectronics.ru Git - kernel.git/commit
net/atm: fix proc_mpc_write incorrect return value
authorXiaobo Liu <cppcoffee@gmail.com>
Fri, 14 Oct 2022 02:05:40 +0000 (10:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Oct 2022 10:08:36 +0000 (11:08 +0100)
commit2265dd14f4652e6472f0bf36e0a3a1e892b6701a
tree64fc30b1ea1e0a28890ba9a9a62d78df0e2e091d
parent763660d6855c3456540201c532fdadfb9b1ad141
net/atm: fix proc_mpc_write incorrect return value

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>
net/atm/mpoa_proc.c