aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/mmp/core.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/video/mmp/core.c b/drivers/video/mmp/core.c
index 84de2632857a..c8d426541612 100644
--- a/drivers/video/mmp/core.c
+++ b/drivers/video/mmp/core.c
@@ -173,7 +173,7 @@ struct mmp_path *mmp_register_path(struct mmp_path_info *info)
173 + sizeof(struct mmp_overlay) * info->overlay_num; 173 + sizeof(struct mmp_overlay) * info->overlay_num;
174 path = kzalloc(size, GFP_KERNEL); 174 path = kzalloc(size, GFP_KERNEL);
175 if (!path) 175 if (!path)
176 goto failed; 176 return NULL;
177 177
178 /* path set */ 178 /* path set */
179 mutex_init(&path->access_ok); 179 mutex_init(&path->access_ok);
@@ -219,11 +219,6 @@ struct mmp_path *mmp_register_path(struct mmp_path_info *info)
219 219
220 mutex_unlock(&disp_lock); 220 mutex_unlock(&disp_lock);
221 return path; 221 return path;
222
223failed:
224 kfree(path);
225 mutex_unlock(&disp_lock);
226 return NULL;
227} 222}
228EXPORT_SYMBOL_GPL(mmp_register_path); 223EXPORT_SYMBOL_GPL(mmp_register_path);
229 224