提交 d54a90c4 编写于 作者: P Pan Bian 提交者: Mauro Carvalho Chehab

[media] media: platform: sti: return -ENOMEM on errors

Function bdisp_debugfs_create() returns 0 even on errors. So its caller
cannot detect the errors. It may be better to return "-ENOMEM" on the
exception paths.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188801Signed-off-by: NPan Bian <bianpan2016@163.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 4865fffa
......@@ -677,7 +677,7 @@ int bdisp_debugfs_create(struct bdisp_dev *bdisp)
err:
bdisp_debugfs_remove(bdisp);
return 0;
return -ENOMEM;
}
void bdisp_debugfs_remove(struct bdisp_dev *bdisp)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册