diff options
author | Colin Ian King <colin.king@canonical.com> | 2020-11-27 14:28:32 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-12-02 13:15:07 +0100 |
commit | 3c0dde35e6aee456abc8d8549ff7ee0963274214 (patch) | |
tree | 91660086c070f170a17626957edd0fade0f01679 /crypto/pcbc.c | |
parent | bac63f1239aceb092e94fee3ef112dbaea79b372 (diff) | |
download | linux-stable-3c0dde35e6aee456abc8d8549ff7ee0963274214.tar.gz linux-stable-3c0dde35e6aee456abc8d8549ff7ee0963274214.tar.bz2 linux-stable-3c0dde35e6aee456abc8d8549ff7ee0963274214.zip |
media: [next] media: vidtv: fix a read from an object after it has been freed
Currently the call to vidtv_psi_pat_table_destroy frees the object
m->si.pat however m->si.pat->num_pmt is being accessed after the
free. Fix this by destroying m->si.pat after the m->si.pmt_secs[]
objects have been freed.
Addresses-Coverity: ("Read from pointer after free")
Reported-by: Cengiz Can <cengiz@kernel.wtf> # sent a similar fix about the same time
Fixes: 039b7caed173 ("media: vidtv: add a PID entry for the NIT table")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'crypto/pcbc.c')
0 files changed, 0 insertions, 0 deletions