aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <[email protected]>2019-01-31 13:57:58 +0100
committerGreg Kroah-Hartman <[email protected]>2019-01-31 14:01:48 +0100
commit2c1cf00eeacb784781cf1c9896b8af001246d339 (patch)
treee07175f82ea5708dd8f5ad744a8ba4e3c5dcd715 /tools/perf/scripts/python/export-to-sqlite.py
parent37ea7b630ae5cdea4e8ff381d9d23abfef5939e6 (diff)
relay: check return of create_buf_file() properly
If create_buf_file() returns an error, don't try to reference it later as a valid dentry pointer. This problem was exposed when debugfs started to return errors instead of just NULL for some calls when they do not succeed properly. Also, the check for WARN_ON(dentry) was just wrong :) Reported-by: Kees Cook <[email protected]> Reported-and-tested-by: [email protected] Reported-by: Tetsuo Handa <[email protected]> Cc: Andrew Morton <[email protected]> Cc: David Rientjes <[email protected]> Fixes: ff9fb72bc077 ("debugfs: return error values, not NULL") Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions