ceph: fix possible NULL pointer dereference for req->r_session
The request will be inserted into the ci->i_unsafe_dirops before assigning the req->r_session, so it's possible that we will hit NULL pointer dereference bug here. Cc: stable@vger.kernel.org URL: https://tracker.ceph.com/issues/55327Signed-off-by:Xiubo Li <xiubli@redhat.com> Reviewed-by:
Jeff Layton <jlayton@kernel.org> Tested-by:
Aaron Tomlin <atomlin@redhat.com> Signed-off-by:
Ilya Dryomov <idryomov@gmail.com>
Showing
Please register or sign in to comment