diff options
author | 2017-07-13 10:45:17 +0300 | |
---|---|---|
committer | 2017-07-17 14:54:58 +0200 | |
commit | 00c8ebb360937bbc5da02929d62fcbf6a72801eb (patch) | |
tree | e35bf3150b2251ac2db8d16a50576ef975943e3a /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | libceph: fix old style declaration warnings (diff) | |
download | wireguard-linux-00c8ebb360937bbc5da02929d62fcbf6a72801eb.tar.xz wireguard-linux-00c8ebb360937bbc5da02929d62fcbf6a72801eb.zip |
libceph: NULL deref on osdmap_apply_incremental() error path
There are hidden gotos in the ceph_decode_* macros. We need to set the
"err" variable on these error paths otherwise we end up returning
ERR_PTR(0) which is NULL. It causes NULL dereferences in the callers.
Fixes: 6f428df47dae ("libceph: pg_upmap[_items] infrastructure")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[idryomov@gmail.com: similar bug in osdmap_decode(), changelog tweak]
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions