aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorZhou Qingyang <zhou1615@umn.edu>2022-01-25 00:45:25 +0800
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-01-27 11:22:43 +0900
commit9b6d90e2085ca2ce72ef9ea78658bf270855e62e (patch)
treef79dd7bee1b66542dc25231a861607aa07846e1f /tools/perf/scripts/python/stackcollapse.py
parentMerge tag 'nfs-for-5.17-1' of git://git.linux-nfs.org/projects/anna/linux-nfs (diff)
downloadlinux-9b6d90e2085ca2ce72ef9ea78658bf270855e62e.tar.gz
linux-9b6d90e2085ca2ce72ef9ea78658bf270855e62e.zip
ata: pata_platform: Fix a NULL pointer dereference in __pata_platform_probe()
In __pata_platform_probe(), devm_kzalloc() is assigned to ap->ops and there is a dereference of it right after that, which could introduce a NULL pointer dereference bug. Fix this by adding a NULL check of ap->ops. This bug was found by a static analyzer. Builds with 'make allyesconfig' show no new warnings, and our static analyzer no longer warns about this code. Fixes: f3d5e4f18dba ("ata: pata_of_platform: Allow to use 16-bit wide data transfer") Signed-off-by: Zhou Qingyang <zhou1615@umn.edu> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
d identifier name in function pointer prototypeTom Parkin1-1/+1 2020-07-22l2tp: cleanup suspect code indentTom Parkin1-2/+2 2020-07-22l2tp: cleanup wonky alignment of line-broken function callsTom Parkin3-8/+8 2020-07-22l2tp: cleanup difficult-to-read line breaksTom Parkin2-44/+31 2020-07-22l2tp: cleanup commentsTom Parkin8-68/+47 2020-07-22l2tp: cleanup whitespace useTom Parkin7-48/+48 2020-07-22devlink: Always use user_ptr[0] for devlink and simplify post_doitParav Pandit1-94/+70 2020-07-22hv_netvsc: add support for vlans in AF_PACKET modeSriram Krishnan2-0/+25 2020-07-22mptcp: zero token hash at creation time.Paolo Abeni1-1/+1 2020-07-22lan743x: remove redundant initialization of variable current_head_indexColin Ian King1-2/+1 2020-07-22enetc: Remove the imdio bus on PF probe bailoutClaudiu Manoil1-1/+9 2020-07-22net: qed: Remove unneeded cast from memory allocationWang Hai1-2/+1 2020-07-22net: phy: fix check in get_phy_c45_idsVladimir Oltean1-2/+2 2020-07-22net: dccp: Add SIOCOUTQ IOCTL support (send buffer fill)Richard Sailer2-0/+12 2020-07-22net: dsa: of: Allow ethernet-ports as encapsulating nodeKurt Kanzenbach1-2/+6 2020-07-22dt-bindings: net: dsa: Let dsa.txt refer to dsa.yamlKurt Kanzenbach1-254/+1