aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorSagi Grimberg <[email protected]>2017-03-09 13:45:52 +0200
committerSagi Grimberg <[email protected]>2017-03-16 18:41:24 +0200
commitb25634e2a051bef4b2524b11adddfbfa6448f6cd (patch)
tree538602b84c1d1d80f004856550b288d732cdecf8 /tools/perf/scripts/python/call-graph-from-postgresql.py
parentd11ea004a458b982e19b188c386e25a9b66ec446 (diff)
nvmet-rdma: Fix a possible uninitialized variable dereference
When handling a new recv command, we grab a new rsp resource and check for the queue state being live. In case the queue is not in live state, we simply restore the rsp back to the free list. However in this flow we didn't set rsp->queue yet, so we cannot dereference it. Instead, make sure to initialize rsp->queue (and other rsp members) as soon as possible so we won't reference uninitialized variables. Reported-by: Yi Zhang <[email protected]> Reported-by: Raju Rangoju <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Tested-by: Raju Rangoju <[email protected]> Signed-off-by: Sagi Grimberg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions