um: Remove use of asprinf in umid.c
authorAnton Ivanov <anton.ivanov@cambridgegreys.com>
Fri, 13 Nov 2020 10:26:17 +0000 (10:26 +0000)
committerRichard Weinberger <richard@nod.at>
Sun, 13 Dec 2020 21:21:07 +0000 (22:21 +0100)
commit97be7ceaf7fea68104824b6aa874cff235333ac1
tree22a205f612d243e49b4495d31fac18acc604053d
parent09041c92f0aacbb6f5a252351d6e0a9e0ee9bcc5
um: Remove use of asprinf in umid.c

asprintf is not compatible with the existing uml memory allocation
mechanism. Its use on the "user" side of UML results in a corrupt slab
state.

Fixes: 0d4e5ac7e780 ("um: remove uses of variable length arrays")
Cc: stable@vger.kernel.org
Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/os-Linux/umid.c