aboutsummaryrefslogtreecommitdiff
path: root/linux-core/nv50_fb.c
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-06-22 18:47:51 +0200
committerMaarten Maathuis <madman2003@gmail.com>2008-06-22 18:47:51 +0200
commite67cd7dda9d7d6d82f4026f246d07bf4c4021a57 (patch)
tree27d0cfeaee52daa79ac6d077420f074a29031d2d /linux-core/nv50_fb.c
parent3809209349ccf12aa71c7848f0b21d77fa0a5f03 (diff)
NV50: A few minor added safeties + cleanup.
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;