[Mesa-stable] [PATCH] auxilary/os: correct sysctl use in os_get_total_physical_memory()
Emil Velikov
emil.l.velikov at gmail.com
Tue Feb 24 08:53:03 PST 2015
On 22 February 2015 at 08:19, Jonathan Gray <jsg at jsg.id.au> wrote:
> The length argument passed to sysctl was the size of the pointer
> not the type. The result of this is sysctl calls would fail on
> 32 bit BSD/Mac OS X.
>
> Additionally the wrong pointer was passed as an argument to store
> the result of the sysctl call.
>
> Cc: "10.4, 10.5" <mesa-stable at lists.freedesktop.org>
> Signed-off-by: Jonathan Gray <jsg at jsg.id.au>
Seems like my attempt was enough but not quite there yet.
Thanks for fixing my goof-up.
Reviewed-by: Emil Velikov <emil.l.velikov at gmail.com>
I'll push this in a couple of days unless there are any objections.
Cheers
Emil
More information about the mesa-stable
mailing list