]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Fix oops in the rpc_xdr_buf event class
authorScott Mayhew <smayhew@redhat.com>
Thu, 12 Nov 2020 20:17:32 +0000 (15:17 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 12 Nov 2020 20:56:51 +0000 (15:56 -0500)
commit96c31b3811c2457d02df922acf634076d97ebf42
treef794ea412f964cd55338db0fe45015a5f20f3bb8
parentb8bd47dac1de03cf9285878fdd944ebd802ea0aa
SUNRPC: Fix oops in the rpc_xdr_buf event class

Backchannel rpc tasks don't have task->tk_client set, so it's necessary
to check it for NULL before dereferencing.

Fixes: ebf2a5017d93 ("SUNRPC: Split the xdr_buf event class")
Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/trace/events/sunrpc.h