summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-07-09 14:30:25 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-08-04 14:43:52 +0200
commit09ea9719a423fc675d40dd05407165e161ea0c48 (patch)
treeeeadb2bb5569d74ffe0ce28ee04ebcff5bf9a17a /tools/perf/scripts/python/bin/stackcollapse-record
parent331e06bbde5856059b7a6bb183f12878ed4decb1 (diff)
downloadkernel-09ea9719a423fc675d40dd05407165e161ea0c48.tar.gz
media: venus: venc: Fix potential null pointer dereference on pointer fmt
Currently the call to find_format can potentially return a NULL to fmt and the nullpointer is later dereferenced on the assignment of pixmp->num_planes = fmt->num_planes. Fix this by adding a NULL pointer check and returning NULL for the failure case. Addresses-Coverity: ("Dereference null return") Fixes: aaaa93eda64b ("[media] media: venus: venc: add video encoder files") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
b587bb087905ff94a079184b0608d0075ff'>net: ethernet: ti: ale: use devm_kzalloc in cpsw_ale_create()Grygorii Strashko 2017-12-01net: ethernet: ti: cpsw: move mac_hi/lo defines in cpsw.hGrygorii Strashko 2017-11-21treewide: setup_timer() -> timer_setup()Kees Cook 2017-09-21net: ti: netcp: use setup_timerAllen Pais 2017-06-29net: ethernet: ti: netcp_ethss: use cpts to check if packet needs timestampingIvan Khoronzhuk 2017-06-13net: phy: Make phy_ethtool_ksettings_get return voidyuval.shaia@oracle.com 2017-05-15net: netcp: fix check of requested timestamping filterMiroslav Lichvar 2017-04-24net: netcp: fix spelling mistake: "memomry" -> "memory"Colin Ian King