qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 10/12] bsd-user: do_freebsd_sysctl helper for sysctl(2)


From: Richard Henderson
Subject: Re: [PATCH v2 10/12] bsd-user: do_freebsd_sysctl helper for sysctl(2)
Date: Tue, 14 Feb 2023 11:45:47 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 2/13/23 14:27, Warner Losh wrote:
+    int32_t *snamep = g_malloc(sizeof(int32_t) * namelen), *p, *q, i;

g_new(int32_t, namelen)

+    unlock_user(holdp, oldp, holdlen);
+    unlock_user(holdp, oldp, ret == 0 ? holdlen : 0);

double-unlock.  clearly the first line is extra.

Otherwise,
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]