1
0
Fork 0

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

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

* 'drm-fixes' of git://people.freedesktop.org/~airlied/linux:
  drm/nouveau/hwmon: fix compilation without CONFIG_HWMON
  drm/sysfs: fix OOM verification
hifive-unleashed-5.1
Linus Torvalds 2013-11-27 21:06:55 -08:00
commit e7c0d3dac8
2 changed files with 1 additions and 2 deletions

View File

@ -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;
}

View File

@ -630,7 +630,6 @@ error:
hwmon->hwmon = NULL;
return ret;
#else
hwmon->hwmon = NULL;
return 0;
#endif
}