From 509fac96e4a40015ff92404153821db2a4a59ca6 Mon Sep 17 00:00:00 2001 From: Nathan Rutman Date: Thu, 24 Jun 2010 10:49:30 -0700 Subject: [PATCH] b=23004 bad cfs_user_write call causes oops i=rread i=breitz --- libcfs/libcfs/kernel_user_comm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libcfs/libcfs/kernel_user_comm.c b/libcfs/libcfs/kernel_user_comm.c index 4c356e9..a36a3bc 100644 --- a/libcfs/libcfs/kernel_user_comm.c +++ b/libcfs/libcfs/kernel_user_comm.c @@ -165,7 +165,11 @@ int libcfs_kkuc_msg_put(cfs_file_t *filp, void *payload) } #ifdef __KERNEL__ - rc = cfs_user_write(filp, (char *)payload, kuch->kuc_msglen, 0); + { + loff_t offset = 0; + rc = cfs_user_write(filp, (char *)payload, kuch->kuc_msglen, + &offset); + } #endif if (rc < 0) -- 1.8.3.1