From 50978fa78f1e126a5dea060da05b79997535f98d Mon Sep 17 00:00:00 2001 From: zhaolei Date: Thu, 1 Nov 2007 07:26:47 +0000 Subject: 2007-11-1 Zhaolei From Lai Jiangshan * rpc.stp (clones_from_clnt): Add CATCH_DEREF_FAULT(). (tasks_from_clnt): Ditto. --- tapset/rpc.stp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tapset/rpc.stp') diff --git a/tapset/rpc.stp b/tapset/rpc.stp index eecdb796..38f53401 100644 --- a/tapset/rpc.stp +++ b/tapset/rpc.stp @@ -949,6 +949,7 @@ function clones_from_clnt:long(clnt:long) struct rpc_clnt *clnt = (struct rpc_clnt *)(long)THIS->clnt; #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,22) THIS->__retvalue = kread(&(clnt->cl_count)); + CATCH_DEREF_FAULT(); #else THIS->__retvalue = -1; #endif @@ -959,6 +960,7 @@ function tasks_from_clnt:long(clnt:long) struct rpc_clnt *clnt = (struct rpc_clnt *)(long)THIS->clnt; #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,22) THIS->__retvalue = kread(&(clnt->cl_users)); + CATCH_DEREF_FAULT(); #else THIS->__retvalue = -1; #endif -- cgit