Re: [PATCH] memstick: fix a potential NULL pointer dereference

2019-03-23 Thread Maxim Levitsky
On Sat, Mar 23, 2019 at 5:08 AM Kangjie Lu wrote: > > Hi Maxim, > > Can you review this patch? > > Thanks, > > > On Mar 9, 2019, at 1:59 AM, Kangjie Lu wrote: > > > > In case alloc_ordered_workqueue fails, the fix returns ENOMEM to > > avoid potential NULL pointer dereference. > > > >

Re: [PATCH] memstick: fix a potential NULL pointer dereference

2019-03-22 Thread Kangjie Lu
Hi Maxim, Can you review this patch? Thanks, > On Mar 9, 2019, at 1:59 AM, Kangjie Lu wrote: > > In case alloc_ordered_workqueue fails, the fix returns ENOMEM to > avoid potential NULL pointer dereference. > > Signed-off-by: Kangjie Lu > --- > drivers/memstick/core/ms_block.c | 5 + > 1

[PATCH] memstick: fix a potential NULL pointer dereference

2019-03-08 Thread Kangjie Lu
In case alloc_ordered_workqueue fails, the fix returns ENOMEM to avoid potential NULL pointer dereference. Signed-off-by: Kangjie Lu --- drivers/memstick/core/ms_block.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/memstick/core/ms_block.c b/drivers/memstick/core/ms_block.c