Re: [PATCH] drm: vkms: check status of alloc_ordered_workqueue

2019-03-25 Thread Daniel Vetter
On Fri, Mar 22, 2019 at 09:32:07PM -0500, Kangjie Lu wrote: > > > > On Mar 8, 2019, at 10:36 PM, Kangjie Lu wrote: > > > > alloc_ordered_workqueue may fail and return NULL. > > The fix returns ENOMEM when it fails to avoid potential NULL > > pointer dereference. > > > > Signed-off-by: Kangjie

Re: [PATCH] drm: vkms: check status of alloc_ordered_workqueue

2019-03-24 Thread Mukesh Ojha
On 3/9/2019 10:06 AM, Kangjie Lu wrote: alloc_ordered_workqueue may fail and return NULL. The fix returns ENOMEM when it fails to avoid potential NULL pointer dereference. Signed-off-by: Kangjie Lu --- drivers/gpu/drm/vkms/vkms_crtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dr

Re: [PATCH] drm: vkms: check status of alloc_ordered_workqueue

2019-03-24 Thread Kangjie Lu
> On Mar 8, 2019, at 10:36 PM, Kangjie Lu wrote: > > alloc_ordered_workqueue may fail and return NULL. > The fix returns ENOMEM when it fails to avoid potential NULL > pointer dereference. > > Signed-off-by: Kangjie Lu > --- > drivers/gpu/drm/vkms/vkms_crtc.c | 2 ++ > 1 file changed, 2 insert

[PATCH] drm: vkms: check status of alloc_ordered_workqueue

2019-03-09 Thread Kangjie Lu
alloc_ordered_workqueue may fail and return NULL. The fix returns ENOMEM when it fails to avoid potential NULL pointer dereference. Signed-off-by: Kangjie Lu --- drivers/gpu/drm/vkms/vkms_crtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/vkms/vkms_crtc.c b/drivers/gpu/