um: Fix len of file in create_pid_file
authorWen Yang <wenyang@linux.alibaba.com>
Wed, 19 Feb 2020 13:44:42 +0000 (21:44 +0800)
committerRichard Weinberger <richard@nod.at>
Sun, 29 Mar 2020 21:20:07 +0000 (23:20 +0200)
commitba758cfce00a5977ccf019926f8379a96f5ac5f6
tree9b353510e0df037045b6b48d62e7b16bcb5fe5ad
parent7d7c0568285d6f5630fb269766186afe09e58dc7
um: Fix len of file in create_pid_file

sizeof gives us the size of the pointer variable, not of the
area it points to. So the number of bytes copied by umid_file_name()
is 8.
We should pass in the correct length of the file buffer.

Signed-off-by: Wen Yang <wenyang@linux.alibaba.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/os-Linux/umid.c