Set the error when a msg is cancelled, otherwise it could crash kernel when the cancelled msg has not been sent.
Signed-off-by: Liu Kui <kui....@virtuozzo.com> --- fs/fuse/kio/pcs/pcs_rpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/fuse/kio/pcs/pcs_rpc.c b/fs/fuse/kio/pcs/pcs_rpc.c index 80bbffcb88a8..a4f3ae1fdf5b 100644 --- a/fs/fuse/kio/pcs/pcs_rpc.c +++ b/fs/fuse/kio/pcs/pcs_rpc.c @@ -592,6 +592,7 @@ int pcs_rpc_cancel_msg(struct pcs_msg *msg) list_del(&msg->list); spin_unlock(&ep->q_lock); + pcs_set_local_error(&msg->error, PCS_ERR_CANCEL_REQUEST); pcs_msg_del_calendar(msg); msg->stage = PCS_MSG_STAGE_NONE; msg->done(msg); -- 2.39.3 (Apple Git-146) _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel