Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 345310
b: refs/heads/master
c: 8c5eaca
h: refs/heads/master
v: v3
  • Loading branch information
Sachin Kamat authored and Dave Airlie committed Nov 20, 2012
1 parent 301f92b commit f5bd95e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e655d122a71332d0d26b5c0909eb395da31af0c0
refs/heads/master: 8c5eaca012f963fa9724665f8a0eca19e3cb7d2a
6 changes: 6 additions & 0 deletions trunk/drivers/gpu/drm/drm_fb_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1251,6 +1251,11 @@ static void drm_setup_crtcs(struct drm_fb_helper *fb_helper)
sizeof(struct drm_display_mode *), GFP_KERNEL);
enabled = kcalloc(dev->mode_config.num_connector,
sizeof(bool), GFP_KERNEL);
if (!crtcs || !modes || !enabled) {
DRM_ERROR("Memory allocation failed\n");
goto out;
}


drm_enable_connectors(fb_helper, enabled);

Expand Down Expand Up @@ -1289,6 +1294,7 @@ static void drm_setup_crtcs(struct drm_fb_helper *fb_helper)
}
}

out:
kfree(crtcs);
kfree(modes);
kfree(enabled);
Expand Down

0 comments on commit f5bd95e

Please sign in to comment.