[Skiboot] [PATCH] core/cpu: Call memset with proper cpu_thread offset
Vasant Hegde
hegdevasant at linux.vnet.ibm.com
Wed Aug 8 14:01:26 AEST 2018
On 08/08/2018 09:10 AM, Ananth N Mavinakayanahalli wrote:
> On Tue, Aug 07, 2018 at 04:37:13PM +0530, Vasant Hegde wrote:
>> "cpu_thread *t + value" vs "(void *)t + val"
.../...
>> - memset(t + guard_skip, 0, sizeof(struct cpu_thread) - guard_skip);
>> + memset(((void *)t) + guard_skip, 0, sizeof(struct cpu_thread) - guard_skip);
>> init_lock(&t->dctl_lock);
>> init_lock(&t->job_lock);
>> list_head_init(&t->job_queue);
>
> Candidate for stable releases too, right?
>
Yes. I have added "#stable". It should go to v6.0.x stable tree.
-Vasant
More information about the Skiboot
mailing list