diff options
| author | Sergey Senozhatsky <[email protected]> | 2023-01-03 12:01:19 +0900 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-01-18 17:12:56 -0800 |
| commit | df32de1433412621b92daf1b3369ac053214031e (patch) | |
| tree | b77ead2c7095975fa72093c8a2a3d7ec50a6463e /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 4b89a37d54a0b5ed6b2e5a9afc44a15a22e563f5 (diff) | |
zram: correctly handle all next_arg() cases
When supplied buffer does not have assignment sign next_arg() sets `val`
pointer to NULL, so we cannot dereference it. Add a NULL pointer test to
handle `param` case, in addition to `*val` test, which handles cases when
param has no value assigned to it: `param=`.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Sergey Senozhatsky <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions