offchannel: always use -ECANCELED for cancelation

info->error gets reset to zero on a successful ROC callback
which was getting used for cancelation.
This commit is contained in:
James Prestwood 2021-12-16 10:00:03 -08:00 committed by Denis Kenzior
parent 4a8a43965f
commit 484dea8d7a
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ void offchannel_cancel(uint64_t wdev_id, uint32_t id)
destroy:
if (info->destroy)
info->destroy(info->error, info->user_data);
info->destroy(-ECANCELED, info->user_data);
info->destroy = NULL;
info->started = NULL;