aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2017-09-04 17:50:05 +0000
committerJames Morris <[email protected]>2017-10-19 02:09:33 +0000
commit76ba89c76f2c74e208d93a9e7c698e39eeb3b85c (patch)
tree94ee1504a73ca7d7c7545f3282210d5c2091068e /tools/perf/scripts/python/check-perf-trace.py
parentMerge commit 'tags/keys-fixes-20171018' into fixes-v4.14-rc5 (diff)
downloadkernel-76ba89c76f2c74e208d93a9e7c698e39eeb3b85c.tar.gz
kernel-76ba89c76f2c74e208d93a9e7c698e39eeb3b85c.zip
commoncap: move assignment of fs_ns to avoid null pointer dereference
The pointer fs_ns is assigned from inode->i_ib->s_user_ns before a null pointer check on inode, hence if inode is actually null we will get a null pointer dereference on this assignment. Fix this by only dereferencing inode after the null pointer check on inode. Detected by CoverityScan CID#1455328 ("Dereference before null check") Fixes: 8db6c34f1dbc ("Introduce v3 namespaced file capabilities") Signed-off-by: Colin Ian King <[email protected]> Cc: [email protected] Acked-by: Serge Hallyn <[email protected]> Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions