mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
It's used to pass command line options to a copied argv. But there's no reason to make the copies as it's all used in the same function. It can simply use stack variables. In fact, it fixes a subtle double free issue. As parse_options() can move contents in argv[], some entries may point to the same item. So freeing all items in the argv could trigger a double free. With stack variables, we don't need to allocate and free them. Tested-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> |
||
|---|---|---|
| .. | ||
| arm64_exception_types.h | ||
| book3s_hcalls.h | ||
| book3s_hv_exits.h | ||
| Build | ||
| kvm-stat-arm64.c | ||
| kvm-stat-loongarch.c | ||
| kvm-stat-powerpc.c | ||
| kvm-stat-riscv.c | ||
| kvm-stat-s390.c | ||
| kvm-stat-x86.c | ||
| riscv_trap_types.h | ||