* Patch "drm: mxsfb: drm_dev_alloc() returns error pointers" has been added to the 4.10-stable tree
@ 2017-05-11 12:46 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-05-11 12:46 UTC (permalink / raw)
To: dan.carpenter, daniel.vetter, gregkh; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
drm: mxsfb: drm_dev_alloc() returns error pointers
to the 4.10-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
drm-mxsfb-drm_dev_alloc-returns-error-pointers.patch
and it can be found in the queue-4.10 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From e89e50ac35d9126907a436dabe70f9a8311b9981 Mon Sep 17 00:00:00 2001
From: Dan Carpenter <dan.carpenter@oracle.com>
Date: Tue, 13 Dec 2016 15:23:32 +0300
Subject: drm: mxsfb: drm_dev_alloc() returns error pointers
From: Dan Carpenter <dan.carpenter@oracle.com>
commit e89e50ac35d9126907a436dabe70f9a8311b9981 upstream.
We should be checking for IS_ERR() instead of NULL because
drm_dev_alloc() returns error pointers.
Fixes: 45d59d704080 ("drm: Add new driver for MXSFB controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161213122332.GA7519@elgon.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
drivers/gpu/drm/mxsfb/mxsfb_drv.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/gpu/drm/mxsfb/mxsfb_drv.c
+++ b/drivers/gpu/drm/mxsfb/mxsfb_drv.c
@@ -395,8 +395,8 @@ static int mxsfb_probe(struct platform_d
pdev->id_entry = of_id->data;
drm = drm_dev_alloc(&mxsfb_driver, &pdev->dev);
- if (!drm)
- return -ENOMEM;
+ if (IS_ERR(drm))
+ return PTR_ERR(drm);
ret = mxsfb_load(drm, 0);
if (ret)
Patches currently in stable-queue which might be from dan.carpenter@oracle.com are
queue-4.10/scsi-scsi_dh_emc-return-success-in-clariion_std_inquiry.patch
queue-4.10/bnxt_en-allocate-enough-space-for-ntp_fltr_bmap.patch
queue-4.10/iwlwifi-mvm-writing-zero-bytes-to-debugfs-causes-a-crash.patch
queue-4.10/drm-mxsfb-drm_dev_alloc-returns-error-pointers.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-05-11 12:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-11 12:46 Patch "drm: mxsfb: drm_dev_alloc() returns error pointers" has been added to the 4.10-stable tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).