summaryrefslogtreecommitdiff
path: root/drivers/media/tuners/fc0012-priv.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-09-21 15:11:50 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-11-26 07:43:40 +0100
commit3be8037960bccd13052cfdeba8805ad785041d70 (patch)
tree61a614288890ceac66534306df68cf583360be42 /drivers/media/tuners/fc0012-priv.h
parent8922e3931dd79055bb3f851bed33f069fc67a2fc (diff)
media: vidtv: add error checks
Currently, there are not checks if something gets bad during memory allocation: it will simply use NULL pointers and crash. Add error path at the logic which allocates memory for the MPEG-TS generator code, propagating the errors up to the vidtv_bridge. Now, if something wents bad, start_streaming will return an error that userspace can detect: ERROR DMX_SET_PES_FILTER failed (PID = 0x2000): 12 Cannot allocate memory and the driver doesn't crash. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/tuners/fc0012-priv.h')
0 files changed, 0 insertions, 0 deletions