]> git.baikalelectronics.ru Git - kernel.git/commit
[media] media: platform: sti: return -ENOMEM on errors
authorPan Bian <bianpan2016@163.com>
Sat, 3 Dec 2016 12:39:33 +0000 (10:39 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Feb 2017 09:58:37 +0000 (07:58 -0200)
commit8d885faf4066d6f4a38233a2652020bc77c05d00
treef510943520c92ef3b9aa19855ea331a1b11ff0d5
parentfdab6805f482aa9c59d858621ff5c5df598549cc
[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=188801

Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/sti/bdisp/bdisp-debug.c