OSDN Git Service

msm: vidc: Fix broken debugfs creation error checks and error paths
authorSultan Alsawaf <sultan@kerneltoast.com>
Fri, 1 Jun 2018 00:03:33 +0000 (17:03 -0700)
committer0ranko0P <ranko0p@outlook.com>
Wed, 4 Dec 2019 17:17:37 +0000 (01:17 +0800)
commit4ad0fdc834e37724d8b2f0998c7a273033fe214c
treee8024e6c20d65acd1798597ae4f93b21af3c1193
parent09f3936430cfd417706796d14f6385fb185e1761
msm: vidc: Fix broken debugfs creation error checks and error paths

The debugfs helper functions do not always return NULL when they fail;
instead, they can return an error number casted as a pointer, so that their
users have the option to determine the exact cause of failure.

Use the IS_ERR_OR_NULL() helper when checking for debugfs errors to fix the
error checks.

Signed-off-by: Sultan Alsawaf <sultan@kerneltoast.com>
Signed-off-by: Volodymyr Zhdanov <wight554@gmail.com>
drivers/media/platform/msm/vidc/msm_vidc_debug.c