[PATCH V1] um: Fix compilation warnings
Richard Weinberger
richard at nod.at
Tue Feb 14 13:57:01 PST 2023
----- Ursprüngliche Mail -----
> Von: "Srinivasarao Pathipati" <quic_c_spathi at quicinc.com>
> static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc)
> {
> - struct uml_pt_regs r;
> + struct uml_pt_regs *r;
> int save_errno = errno;
>
> - r.is_user = 0;
> + r = malloc(sizeof(struct uml_pt_regs));
I fear this is not correct since malloc() is not async-signal safe.
Thanks,
//richard
More information about the linux-um
mailing list