patch-2.4.27 linux-2.4.27/arch/s390/kernel/debug.c

Next file: linux-2.4.27/arch/s390x/kernel/debug.c
Previous file: linux-2.4.27/arch/ppc64/kernel/rtas-proc.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/arch/s390/kernel/debug.c linux-2.4.27/arch/s390/kernel/debug.c
@@ -470,8 +470,8 @@
 				goto out;
 	}
 out:
-	p_info->offset           = *offset + count;
-	p_info->act_entry_offset = size;	
+	p_info->offset           += count;
+	p_info->act_entry_offset = size;
 	*offset = p_info->offset;
 	return count;
 }
@@ -1068,7 +1068,7 @@
 		       input_buf[0]);
 	}
       out:
-	*offset += in_buf_size;
+	*offset = in_buf_size;
 	return rc;		/* number of input characters */
 }
 
@@ -1135,7 +1135,7 @@
         printk(KERN_INFO "debug: area `%c` is not valid\n", input_buf[0]);
 
       out:
-        *offset += in_buf_size;
+        *offset = in_buf_size;
         return rc;              /* number of input characters */
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)