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

Next file: linux-2.4.27/arch/sh64/config.in
Previous file: linux-2.4.27/arch/s390/kernel/debug.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.26/arch/s390x/kernel/debug.c linux-2.4.27/arch/s390x/kernel/debug.c
@@ -470,7 +470,7 @@
 				goto out;
 	}
 out:
-	p_info->offset           = *offset + count;
+	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)