summaryrefslogtreecommitdiff
path: root/linux-core/nv50_fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/nv50_fb.c')
-rw-r--r--linux-core/nv50_fb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/nv50_fb.c b/linux-core/nv50_fb.c
index b44b48ab..f57a9fad 100644
--- a/linux-core/nv50_fb.c
+++ b/linux-core/nv50_fb.c
@@ -119,6 +119,9 @@ int nv50_fb_create(struct nv50_crtc *crtc)
crtc->fb = kzalloc(sizeof(struct nv50_fb), GFP_KERNEL);
+ if (!crtc->fb)
+ return -ENOMEM;
+
crtc->fb->bind = nv50_fb_bind;
return 0;