|
@@ -106,6 +106,10 @@ int drm_proc_create_files(struct drm_info_list *files, int count,
|
|
continue;
|
|
continue;
|
|
|
|
|
|
tmp = kmalloc(sizeof(struct drm_info_node), GFP_KERNEL);
|
|
tmp = kmalloc(sizeof(struct drm_info_node), GFP_KERNEL);
|
|
|
|
+ if (tmp == NULL) {
|
|
|
|
+ ret = -1;
|
|
|
|
+ goto fail;
|
|
|
|
+ }
|
|
ent = create_proc_entry(files[i].name, S_IFREG | S_IRUGO, root);
|
|
ent = create_proc_entry(files[i].name, S_IFREG | S_IRUGO, root);
|
|
if (!ent) {
|
|
if (!ent) {
|
|
DRM_ERROR("Cannot create /proc/dri/%s/%s\n",
|
|
DRM_ERROR("Cannot create /proc/dri/%s/%s\n",
|