summaryrefslogtreecommitdiff
path: root/kernel/exec_domain.c
diff options
context:
space:
mode:
authorAishwarya Pant <aishpant@gmail.com>2017-03-12 21:09:00 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-14 07:57:53 +0800
commitd676e37fb656a091653b61c38357c228353f09fe (patch)
tree59f52705fea6b196b0138b9aec7d326227100abe /kernel/exec_domain.c
parentfc8612b1cbd55d805b5df3c867d21699873a95b3 (diff)
staging: bcm2835-audio: replace null with error pointer value
This patch replaces NULL values returned by vc_vchi_audio_init(...) with error pointer values: - Return ERR_PTR(-EINVAL) when too many instances of audio service are initialised - Return ERR_PTR(-ENOMEM) when kzalloc fails - RETURN ERR_PTR(-EPERM) when vchi connections fail to open Similarly, a NULL check where vc_vchi_audio_init(...) is called is replaced by IS_ERR(..) Signed-off-by: Aishwarya Pant <aishpant@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/exec_domain.c')
0 files changed, 0 insertions, 0 deletions