Re: [PATCH] workqueue: fix null-ptr-deref on __alloc_workqueue() error
From: Sergey Senozhatsky
Date: Thu Aug 15 2024 - 22:52:35 EST
On (24/08/16 02:45), Matthew Brost wrote:
[..]
> > Oh, I haven't checked the workqueue header. Yes, you are right.
> > A macro should work.
> >
>
> To be clear we your change to __alloc_workqueue in workqueue.c AND my
> change to a macro in workqueue.h.
Oh, yes, correct, that's what I meant too - we need both.
// Plus a null-ptr-deref fix in __alloc_workqueue() error path.