[Devel] [PATCH VZ9] fs/fuse kio: fixed a bug in pcs_rpc_cancel_msg()

2024-11-20 Thread Liu Kui
Pass the pointer of pcs_rpc instance from caller because msg->rpc could be NULL when the msg is still in the input_queue. Signed-off-by: Liu Kui --- fs/fuse/kio/pcs/pcs_krpc.c | 4 ++-- fs/fuse/kio/pcs/pcs_rpc.c | 5 + fs/fuse/kio/pcs/pcs_rpc.h | 2 +- 3 files changed, 4 insertions(+), 7 d

Re: [Devel] [PATCH VZ9] fs/fuse kio: fixed a bug in pcs_rpc_cancel_msg

2024-09-24 Thread Alexey Kuznetsov
Ack On Tue, Sep 24, 2024 at 6:11 PM Liu Kui wrote: > > 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 > --- > fs/fuse/kio/pcs/pcs_rpc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/fuse

[Devel] [PATCH VZ9] fs/fuse kio: fixed a bug in pcs_rpc_cancel_msg

2024-09-24 Thread Liu Kui
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 --- 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..a4f3