diff options
author | Ashish Pandey <aspandey@redhat.com> | 2019-07-11 16:52:49 +0530 |
---|---|---|
committer | Rinku Kothiya <rkothiya@redhat.com> | 2020-03-17 14:27:36 +0000 |
commit | 5b9e4bbeb115d39e1a5e929b4ffbe981e4597ae7 (patch) | |
tree | 0337ead5951c7390d13f02b5048716b9eef50f3e /tests/basic | |
parent | 4bb9b30b4d7f49d17e57fad2540d9398c83d427a (diff) |
cluster/ec: Change handling of heal failure to avoid crash
Problem:
ec_getxattr_heal_cbk was called with NULL as second argument
in case heal was failing.
This function was dereferencing "cookie" argument which caused crash.
Solution:
Cookie is changed to carry the value that was supposed to be
stored in fop->data, so even in the case when fop is NULL in error
case, there won't be any NULL dereference.
Thanks to Xavi for the suggestion about the fix.
Change-Id: I0798000d5cadb17c3c2fbfa1baf77033ffc2bb8c
updates: #1061
Diffstat (limited to 'tests/basic')
0 files changed, 0 insertions, 0 deletions