Permalink
Browse files

psb-kmp.patch applied

  • Loading branch information...
1 parent 0c4490c commit 4c1b7e45f677c356cc6ffa3c54c583d3e27c12f7 @gregkh committed Jul 1, 2009
Showing with 12 additions and 0 deletions.
  1. +12 −0 drm_crtc.c
View
@@ -522,6 +522,18 @@ EXPORT_SYMBOL(drm_disable_unused_functions);
void drm_mode_probed_add(struct drm_output *output,
struct drm_display_mode *mode)
{
+ if (!output) {
+ printk(KERN_ERR "ERROR: output is NULL\n");
+ WARN_ON(!output);
+ return;
+ }
+ if (!mode) {
+ printk(KERN_ERR "ERROR: mode is NULL\n");
+ WARN_ON(!mode);
+ return;
+ }
+
+ printk(KERN_ERR "PSB: Adding mode\n");
list_add(&mode->head, &output->probed_modes);
}
EXPORT_SYMBOL(drm_mode_probed_add);

0 comments on commit 4c1b7e4

Please sign in to comment.