patch-2.4.20 linux-2.4.20/arch/s390/kernel/debug.c
Next file: linux-2.4.20/arch/s390/kernel/entry.S
Previous file: linux-2.4.20/arch/s390/defconfig
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Thu Nov 28 15:53:11 2002
- Orig file:
linux-2.4.19/arch/s390/kernel/debug.c
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/s390/kernel/debug.c linux-2.4.20/arch/s390/kernel/debug.c
@@ -443,6 +443,7 @@
{
size_t count = 0;
size_t entry_offset, size = 0;
+ int rc;
file_private_info_t *p_info;
p_info = ((file_private_info_t *) file->private_data);
@@ -458,9 +459,9 @@
size = MIN((len - count), (size - entry_offset));
if(size){
- if (copy_to_user(user_buf + count,
- p_info->temp_buf + entry_offset, size))
- return count ? count: -EFAULT;
+ if ((rc = copy_to_user(user_buf + count,
+ p_info->temp_buf + entry_offset, size)))
+ return rc;
}
count += size;
entry_offset = 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)