Magellan Linux

Annotation of /trunk/kernel26-alx/patches-2.6.27-r3/0149-2.6.27.50-all-fixes.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1176 - (hide annotations) (download)
Thu Oct 14 15:11:06 2010 UTC (13 years, 8 months ago) by niro
File size: 4482 byte(s)
-2.6.27-alx-r3: new magellan 0.5.2 kernel
1 niro 1176 diff --git a/Documentation/accounting/.gitignore b/Documentation/accounting/.gitignore
2     new file mode 100644
3     index 0000000..8648520
4     --- /dev/null
5     +++ b/Documentation/accounting/.gitignore
6     @@ -0,0 +1 @@
7     +getdelays
8     diff --git a/Documentation/auxdisplay/.gitignore b/Documentation/auxdisplay/.gitignore
9     new file mode 100644
10     index 0000000..7af2228
11     --- /dev/null
12     +++ b/Documentation/auxdisplay/.gitignore
13     @@ -0,0 +1 @@
14     +cfag12864b-example
15     diff --git a/Documentation/connector/.gitignore b/Documentation/connector/.gitignore
16     new file mode 100644
17     index 0000000..d2b9c32
18     --- /dev/null
19     +++ b/Documentation/connector/.gitignore
20     @@ -0,0 +1 @@
21     +ucon
22     diff --git a/Documentation/ia64/.gitignore b/Documentation/ia64/.gitignore
23     new file mode 100644
24     index 0000000..ab806ed
25     --- /dev/null
26     +++ b/Documentation/ia64/.gitignore
27     @@ -0,0 +1 @@
28     +aliasing-test
29     diff --git a/Documentation/networking/.gitignore b/Documentation/networking/.gitignore
30     new file mode 100644
31     index 0000000..286a568
32     --- /dev/null
33     +++ b/Documentation/networking/.gitignore
34     @@ -0,0 +1 @@
35     +ifenslave
36     diff --git a/Documentation/pcmcia/.gitignore b/Documentation/pcmcia/.gitignore
37     new file mode 100644
38     index 0000000..53d0813
39     --- /dev/null
40     +++ b/Documentation/pcmcia/.gitignore
41     @@ -0,0 +1 @@
42     +crc32hash
43     diff --git a/Documentation/spi/.gitignore b/Documentation/spi/.gitignore
44     new file mode 100644
45     index 0000000..4280576
46     --- /dev/null
47     +++ b/Documentation/spi/.gitignore
48     @@ -0,0 +1,2 @@
49     +spidev_fdx
50     +spidev_test
51     diff --git a/Documentation/video4linux/.gitignore b/Documentation/video4linux/.gitignore
52     new file mode 100644
53     index 0000000..9527039
54     --- /dev/null
55     +++ b/Documentation/video4linux/.gitignore
56     @@ -0,0 +1 @@
57     +v4lgrab
58     diff --git a/Documentation/vm/.gitignore b/Documentation/vm/.gitignore
59     new file mode 100644
60     index 0000000..33e8a02
61     --- /dev/null
62     +++ b/Documentation/vm/.gitignore
63     @@ -0,0 +1 @@
64     +slabinfo
65     diff --git a/Documentation/watchdog/src/.gitignore b/Documentation/watchdog/src/.gitignore
66     new file mode 100644
67     index 0000000..ac90997
68     --- /dev/null
69     +++ b/Documentation/watchdog/src/.gitignore
70     @@ -0,0 +1,2 @@
71     +watchdog-simple
72     +watchdog-test
73     diff --git a/arch/x86/boot/compressed/.gitignore b/arch/x86/boot/compressed/.gitignore
74     index be0ed06..63eff3b 100644
75     --- a/arch/x86/boot/compressed/.gitignore
76     +++ b/arch/x86/boot/compressed/.gitignore
77     @@ -1 +1,3 @@
78     relocs
79     +vmlinux.bin.all
80     +vmlinux.relocs
81     diff --git a/drivers/misc/enclosure.c b/drivers/misc/enclosure.c
82     index 0736cff..f57abe8 100644
83     --- a/drivers/misc/enclosure.c
84     +++ b/drivers/misc/enclosure.c
85     @@ -264,8 +264,11 @@ enclosure_component_register(struct enclosure_device *edev,
86     cdev->groups = enclosure_groups;
87    
88     err = device_register(cdev);
89     - if (err)
90     - ERR_PTR(err);
91     + if (err) {
92     + ecomp->number = -1;
93     + put_device(cdev);
94     + return ERR_PTR(err);
95     + }
96    
97     return ecomp;
98     }
99     diff --git a/drivers/parisc/led.c b/drivers/parisc/led.c
100     index f9b1266..299b4e6e 100644
101     --- a/drivers/parisc/led.c
102     +++ b/drivers/parisc/led.c
103     @@ -182,16 +182,18 @@ static int led_proc_read(char *page, char **start, off_t off, int count,
104     static int led_proc_write(struct file *file, const char *buf,
105     unsigned long count, void *data)
106     {
107     - char *cur, lbuf[count + 1];
108     + char *cur, lbuf[32];
109     int d;
110    
111     if (!capable(CAP_SYS_ADMIN))
112     return -EACCES;
113    
114     - memset(lbuf, 0, count + 1);
115     + if (count >= sizeof(lbuf))
116     + count = sizeof(lbuf)-1;
117    
118     if (copy_from_user(lbuf, buf, count))
119     return -EFAULT;
120     + lbuf[count] = 0;
121    
122     cur = lbuf;
123    
124     diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c
125     index eed040d..4c83653 100644
126     --- a/fs/gfs2/dir.c
127     +++ b/fs/gfs2/dir.c
128     @@ -393,7 +393,7 @@ static int gfs2_dirent_find_space(const struct gfs2_dirent *dent,
129     unsigned totlen = be16_to_cpu(dent->de_rec_len);
130    
131     if (gfs2_dirent_sentinel(dent))
132     - actual = GFS2_DIRENT_SIZE(0);
133     + actual = 0;
134     if (totlen - actual >= required)
135     return 1;
136     return 0;
137     diff --git a/fs/xfs/xfs_dfrag.c b/fs/xfs/xfs_dfrag.c
138     index 75b0cd4..ce2a6a2 100644
139     --- a/fs/xfs/xfs_dfrag.c
140     +++ b/fs/xfs/xfs_dfrag.c
141     @@ -74,7 +74,9 @@ xfs_swapext(
142     goto out_free_sxp;
143     }
144    
145     - if (!(file->f_mode & FMODE_WRITE) || (file->f_flags & O_APPEND)) {
146     + if (!(file->f_mode & FMODE_WRITE) ||
147     + !(file->f_mode & FMODE_READ) ||
148     + (file->f_flags & O_APPEND)) {
149     error = XFS_ERROR(EBADF);
150     goto out_put_file;
151     }
152     @@ -86,6 +88,7 @@ xfs_swapext(
153     }
154    
155     if (!(target_file->f_mode & FMODE_WRITE) ||
156     + !(target_file->f_mode & FMODE_READ) ||
157     (target_file->f_flags & O_APPEND)) {
158     error = XFS_ERROR(EBADF);
159     goto out_put_target_file;