~ubuntu-branches/debian/jessie/ppp/jessie

« back to all changes in this revision

Viewing changes to debian/kernel.fix-2.0.30-2

  • Committer: Bazaar Package Importer
  • Author(s): Michael Beattie
  • Date: 2001-12-11 00:24:05 UTC
  • Revision ID: james.westby@ubuntu.com-20011211002405-gcsjlgalwyjf99m2
Tags: 2.4.1.uus-4
Use MAKEDEV in postinst, not mknod. (Closes: #122574)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
From lma@varesearch.com Wed Jul 23 20:40:33 1997
 
3
Date: Wed, 23 Jul 1997 14:56:14 -0700
 
4
From: "Larry M. Augustin" <lma@varesearch.com>
 
5
To: clameter@miriam.fuller.edu
 
6
Cc: linux-kernel@vger.rutgers.edu, davem@jenolan.rutgers.edu,
 
7
    longyear@netcom.com, callahan@maths.ox.ac.uk
 
8
Subject: Re: ppp 2.3.1 patch for Linux 2.1.4x+
 
9
 
 
10
 
 
11
This reminds me, I had to modify ppp.c from ppp-2.3.1 to make it work
 
12
with kernel 2.0.31-pre2.  Here is the patch to the ppp.c distributed
 
13
with 2.3.1.  I'm not sure if any of this should be in 2.0.31 or not.
 
14
 
 
15
Larry
 
16
 
 
17
 
 
18
--- ppp.c       Sun Jul 13 20:50:50 1997
 
19
+++ /usr/src/linux/drivers/net/ppp.c    Mon Jul 21 10:59:54 1997
 
20
@@ -455,7 +455,7 @@
 
21
        dev->rebuild_header   = ppp_dev_rebuild;
 
22
 #endif
 
23
 
 
24
-       dev->hard_header_len  = PPP_HARD_HDR_LEN;
 
25
+       dev->hard_header_len  = PPP_HDRLEN;
 
26
 
 
27
        /* device INFO */
 
28
        dev->mtu              = PPP_MTU;
 
29
@@ -2196,6 +2196,7 @@
 
30
        struct ppp *ppp = tty2ppp (tty);
 
31
        __u8 *new_data;
 
32
        int proto;
 
33
+       int error;
 
34
 
 
35
 /*
 
36
  * Verify the pointers.
 
37
@@ -2231,7 +2232,8 @@
 
38
 /*
 
39
  * Retrieve the user's buffer
 
40
  */
 
41
-       if (copy_from_user (new_data, data, count)) {
 
42
+       COPY_FROM_USER (error, new_data, data, count);
 
43
+       if (error != 0) {
 
44
                kfree (new_data);
 
45
                return -EFAULT;
 
46
        }