Selaa lähdekoodia

Merge branch 'drm-fixes' of git://people.freedesktop.org/~airlied/linux

Pull drm fixes from Dave Airlie:
 "Just two changes: one udl endian fix, one nouveau memory corruption on
  some GPUs."

* 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
  drm/nouveau/fbcon: using nv_two_heads is not a good idea
  drm/udl: Make sure to get correct endian keys from vendor descriptor
Linus Torvalds 13 vuotta sitten
vanhempi
commit
d1346a6cba
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      drivers/gpu/drm/nouveau/nouveau_fbcon.c
  2. 1 1
      drivers/gpu/drm/udl/udl_main.c

+ 1 - 1
drivers/gpu/drm/nouveau/nouveau_fbcon.c

@@ -467,7 +467,7 @@ int nouveau_fbcon_init(struct drm_device *dev)
 	nfbdev->helper.funcs = &nouveau_fbcon_helper_funcs;
 
 	ret = drm_fb_helper_init(dev, &nfbdev->helper,
-				 nv_two_heads(dev) ? 2 : 1, 4);
+				 dev->mode_config.num_crtc, 4);
 	if (ret) {
 		kfree(nfbdev);
 		return ret;

+ 1 - 1
drivers/gpu/drm/udl/udl_main.c

@@ -61,7 +61,7 @@ static int udl_parse_vendor_descriptor(struct drm_device *dev,
 			u8 length;
 			u16 key;
 
-			key = *((u16 *) desc);
+			key = le16_to_cpu(*((u16 *) desc));
 			desc += sizeof(u16);
 			length = *desc;
 			desc++;