patch-2.2.16 linux/net/irda/ircomm/ircomm_tty.c

Next file: linux/net/irda/irlan/irlan_client.c
Previous file: linux/net/irda/af_irda.c
Back to the patch index
Back to the overall index

diff -urN v2.2.15/linux/net/irda/ircomm/ircomm_tty.c linux/net/irda/ircomm/ircomm_tty.c
@@ -1347,7 +1347,7 @@
 done:
         if (offset >= count+begin)
                 return 0;
-        *start = buf + (begin-offset);
+        *start = buf + (offset-begin);
         return ((len < begin+count-offset) ? len : begin+count-offset);
 }
 

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