]> git.pld-linux.org Git - packages/kernel.git/blame - kernel-small_fixes.patch
- up to 3.3.1; updated vserver patch to vs2.3.3.2; drop scsi workaround
[packages/kernel.git] / kernel-small_fixes.patch
CommitLineData
08aa9d92 1--- linux-2.6.33/scripts/mod/modpost.c~ 2010-02-24 19:52:17.000000000 +0100
2+++ linux-2.6.33/scripts/mod/modpost.c 2010-03-07 14:26:47.242168558 +0100
3@@ -15,7 +15,8 @@
4 #include <stdio.h>
5 #include <ctype.h>
6 #include "modpost.h"
7-#include "../../include/generated/autoconf.h"
8+// PLD architectures don't use CONFIG_SYMBOL_PREFIX
9+//#include "../../include/generated/autoconf.h"
10 #include "../../include/linux/license.h"
11
12 /* Some toolchains use a `_' prefix for all user symbols. */
13
2136e199
AM
14--- linux-3.0/scripts/kconfig/lxdialog/check-lxdialog.sh~ 2011-07-22 04:17:23.000000000 +0200
15+++ linux-3.0/scripts/kconfig/lxdialog/check-lxdialog.sh 2011-08-25 21:26:04.799150642 +0200
16@@ -9,6 +9,12 @@
17 $cc -print-file-name=lib${lib}.${ext} | grep -q /
18 if [ $? -eq 0 ]; then
19 echo "-l${lib}"
20+ for libt in tinfow tinfo ; do
21+ $cc -print-file-name=lib${libt}.${ext} | grep -q /
22+ if [ $? -eq 0 ]; then
23+ echo "-l${libt}"
24+ fi
25+ done
26 exit
27 fi
28 done
44c0f99c 29
e0470645 30
c8aa6c21 31
2063b451 32
2e4bb310
AM
33From: Vasiliy Kulikov <segoon@openwall.com>
34Date: Fri, 23 Mar 2012 20:56:42 +0400
35Subject: [PATCH] proc: fix mount -t proc -o AAA
36
37proc_parse_options() inside of proc_mount() runs only once at the boot
38time without any given options. So, following umount(2)+mount(2) ignore
39mount options: proc_parse_options() is not called as ->s_root is already
40initialized. To fix that parse mount options unconditionally.
41
42Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
43Reported-by: Arkadiusz Miśkiewicz <a.miskiewicz@gmail.com>
44---
45 fs/proc/root.c | 9 +++++----
46 1 files changed, 5 insertions(+), 4 deletions(-)
47
48diff --git a/fs/proc/root.c b/fs/proc/root.c
49index 46a15d8..eed44bf 100644
50--- a/fs/proc/root.c
51+++ b/fs/proc/root.c
52@@ -115,12 +115,13 @@ static struct dentry *proc_mount(struct file_system_type *fs_type,
53 if (IS_ERR(sb))
54 return ERR_CAST(sb);
55
56+ if (!proc_parse_options(options, ns)) {
57+ deactivate_locked_super(sb);
58+ return ERR_PTR(-EINVAL);
59+ }
60+
61 if (!sb->s_root) {
62 sb->s_flags = flags;
63- if (!proc_parse_options(options, ns)) {
64- deactivate_locked_super(sb);
65- return ERR_PTR(-EINVAL);
66- }
67 err = proc_fill_super(sb);
68 if (err) {
69 deactivate_locked_super(sb);
70--
711.7.0.4
72
59e60efc
AM
73diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
74index 7a0c800..ec5ebbb 100644
75--- a/drivers/net/ethernet/realtek/r8169.c
76+++ b/drivers/net/ethernet/realtek/r8169.c
77@@ -4103,6 +4103,14 @@ rtl8169_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
78 /* Get MAC address */
79 for (i = 0; i < ETH_ALEN; i++)
80 dev->dev_addr[i] = RTL_R8(MAC0 + i);
81+
82+ if (!is_valid_ether_addr(dev->dev_addr)) {
83+ /* Report it and use a random ethernet address instead */
84+ netdev_err(dev, "Invalid MAC address: %pM\n", dev->dev_addr);
85+ random_ether_addr(dev->dev_addr);
86+ netdev_info(dev, "Using random MAC address: %pM\n",
87+ dev->dev_addr);
88+ }
89 memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
90
91 SET_ETHTOOL_OPS(dev, &rtl8169_ethtool_ops);
92--
931.7.7.3
94
6a605112 95
This page took 0.078568 seconds and 4 git commands to generate.