Commit e7c0d3da authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge branch 'drm-fixes' of git://

Pull drm fixes from Dave Airlie:
 "Just two minor fixes as people keep resending since they are so low

* 'drm-fixes' of git://
  drm/nouveau/hwmon: fix compilation without CONFIG_HWMON
  drm/sysfs: fix OOM verification
parents 682a2512 eec99016
......@@ -516,7 +516,7 @@ int drm_sysfs_device_add(struct drm_minor *minor)
minor_str = "card%d";
minor->kdev = kzalloc(sizeof(*minor->kdev), GFP_KERNEL);
if (!minor->dev) {
if (!minor->kdev) {
r = -ENOMEM;
goto error;
......@@ -630,7 +630,6 @@ nouveau_hwmon_init(struct drm_device *dev)
hwmon->hwmon = NULL;
return ret;
hwmon->hwmon = NULL;
return 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment