3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-05 19:08:52 +02:00

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

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;