From: Insu Yun <wuninsu@gmail.com>
To: airlied@linux.ie, bskeggs@redhat.com, daniel.vetter@ffwll.ch,
ville.syrjala@linux.intel.com, maarten.lankhorst@linux.intel.com,
treding@nvidia.com, acourbot@nvidia.com,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Cc: taesoo@gatech.edu, yeongjin.jang@gatech.edu, insu@gatech.edu,
changwoo@gatech.edu, Insu Yun <wuninsu@gmail.com>
Subject: [PATCH] nouveau: need to handle failed allocation
Date: Thu, 28 Jan 2016 19:09:12 -0500 [thread overview]
Message-ID: <1454026152-5644-1-git-send-email-wuninsu@gmail.com> (raw)
drm_property_create_range can be failed in memory pressure.
So, it needs to be handled.
Signed-off-by: Insu Yun <wuninsu@gmail.com>
---
drivers/gpu/drm/nouveau/nouveau_display.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c
index 24be27d..26b4902 100644
--- a/drivers/gpu/drm/nouveau/nouveau_display.c
+++ b/drivers/gpu/drm/nouveau/nouveau_display.c
@@ -443,6 +443,12 @@ nouveau_display_create_properties(struct drm_device *dev)
/* -100..+100 */
disp->color_vibrance_property =
drm_property_create_range(dev, 0, "color vibrance", 0, 200);
+
+ if (!disp->underscan_hborder_property ||
+ !disp->underscan_vborder_property ||
+ !disp->vibrant_hue_property ||
+ !disp->color_vibrance_property)
+ return;
}
int
--
1.9.1
next reply other threads:[~2016-01-29 0:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-29 0:09 Insu Yun [this message]
2016-01-29 0:08 ` Ilia Mirkin
[not found] ` <CAGoFzNfPCQqVsGK_pVaBPFTSuCKe0Qc-eSuN1Y78hWiHbgU0vg@mail.gmail.com>
2016-01-29 3:18 ` Ben Skeggs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1454026152-5644-1-git-send-email-wuninsu@gmail.com \
--to=wuninsu@gmail.com \
--cc=acourbot@nvidia.com \
--cc=airlied@linux.ie \
--cc=bskeggs@redhat.com \
--cc=changwoo@gatech.edu \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=insu@gatech.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=taesoo@gatech.edu \
--cc=treding@nvidia.com \
--cc=ville.syrjala@linux.intel.com \
--cc=yeongjin.jang@gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome