Get the rpc pointer from the original msg instead of the cloned msg. Because it could be NULL in the cloned msg if it is being aborted while still sits in the rpc's input_queue.
Related to #VSTOR-98673 Signed-off-by: Liu Kui <kui....@virtuozzo.com> --- fs/fuse/kio/pcs/pcs_rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fuse/kio/pcs/pcs_rpc.c b/fs/fuse/kio/pcs/pcs_rpc.c index 5557fc2fc9eb..9b2f09843919 100644 --- a/fs/fuse/kio/pcs/pcs_rpc.c +++ b/fs/fuse/kio/pcs/pcs_rpc.c @@ -1061,8 +1061,8 @@ void pcs_rpc_sent(struct pcs_msg * msg) static void rpc_call_sent_cb(struct pcs_msg * clone) { - struct pcs_msg * msg = clone->private; - struct pcs_rpc * ep = clone->rpc; + struct pcs_msg *msg = clone->private; + struct pcs_rpc *ep = msg->rpc; BUG_ON(!mutex_is_locked(&ep->mutex)); -- 2.39.5 (Apple Git-154) _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel