diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-06-09 15:43:16 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-06-09 15:45:20 +0300 |
commit | 3d42c93e5fc9e67e0023b7242097f1c1c2cead01 (patch) | |
tree | ef5b3614102f52237988f0c3582e9e444f8d8fcb /drivers/media/usb | |
parent | 45040f675041956ad763f9ef139ecee3647aa8bb (diff) | |
download | linux-3d42c93e5fc9e67e0023b7242097f1c1c2cead01.tar.xz |
media: dmxdev: change the check for problems allocing secfeed
While the logic there is right, it tricks static check analyzers,
like smatch:
drivers/media/dvb-core/dmxdev.c:729 dvb_dmxdev_filter_start() error: we previously assumed '*secfeed' could be null (see line 719)
Because the implementation of the filter itself is made via
a callback, with its real implementation at the
dvbdmx_allocate_section_feed() inside dvb_demux.c.
So, change the check logic to make it clear that the function
will not try to use *secfeed == NULL.
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/usb')
0 files changed, 0 insertions, 0 deletions