From: Greg Kroah-Hartman Date: Mon, 6 Dec 2010 23:13:22 +0000 (-0800) Subject: .32 patches X-Git-Tag: v2.6.27.57~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c8476194e0eebfad00f751b877dd0ddd52aab0a;p=thirdparty%2Fkernel%2Fstable-queue.git .32 patches --- diff --git a/queue-2.6.32/series b/queue-2.6.32/series index 2e47a3c063e..c75dc134f6d 100644 --- a/queue-2.6.32/series +++ b/queue-2.6.32/series @@ -89,3 +89,5 @@ decnet-don-t-leak-uninitialized-stack-byte.patch perf_events-fix-perf_counter_mmap-hook-in-mprotect.patch arm-6489-1-thumb2-fix-incorrect-optimisation-in-usracc.patch arm-6482-2-fix-find_next_zero_bit-and-related-assembly.patch +staging-frontier-fix-up-some-sysfs-attribute-permissions.patch +staging-rtl8187se-change-panic-to-warn-when-rf-switch-turned-off.patch diff --git a/queue-2.6.32/staging-frontier-fix-up-some-sysfs-attribute-permissions.patch b/queue-2.6.32/staging-frontier-fix-up-some-sysfs-attribute-permissions.patch new file mode 100644 index 00000000000..6063fc3ee22 --- /dev/null +++ b/queue-2.6.32/staging-frontier-fix-up-some-sysfs-attribute-permissions.patch @@ -0,0 +1,31 @@ +From 3bad28ec006ad6ab2bca4e5103860b75391e3c9d Mon Sep 17 00:00:00 2001 +From: Greg Kroah-Hartman +Date: Tue, 16 Nov 2010 11:18:33 -0800 +Subject: Staging: frontier: fix up some sysfs attribute permissions + +From: Greg Kroah-Hartman + +commit 3bad28ec006ad6ab2bca4e5103860b75391e3c9d and +2a767fda5d0d8dcff465724dfad6ee131489b3f2 upstream merged together. + +They should not be writable by any user + +Reported-by: Linus Torvalds +Cc: David Taht +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/staging/frontier/tranzport.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/staging/frontier/tranzport.c ++++ b/drivers/staging/frontier/tranzport.c +@@ -202,7 +202,7 @@ static void usb_tranzport_abort_transfer + t->value = temp; \ + return count; \ + } \ +- static DEVICE_ATTR(value, S_IWUGO | S_IRUGO, show_##value, set_##value); ++ static DEVICE_ATTR(value, S_IWUSR | S_IRUGO, show_##value, set_##value); + + show_int(enable); + show_int(offline); diff --git a/queue-2.6.32/staging-rtl8187se-change-panic-to-warn-when-rf-switch-turned-off.patch b/queue-2.6.32/staging-rtl8187se-change-panic-to-warn-when-rf-switch-turned-off.patch new file mode 100644 index 00000000000..015f702e8b9 --- /dev/null +++ b/queue-2.6.32/staging-rtl8187se-change-panic-to-warn-when-rf-switch-turned-off.patch @@ -0,0 +1,72 @@ +From f36d83a8cb7224f45fdfa1129a616dff56479a09 Mon Sep 17 00:00:00 2001 +From: Larry Finger +Date: Sat, 13 Nov 2010 13:01:56 -0600 +Subject: staging: rtl8187se: Change panic to warn when RF switch turned off + +From: Larry Finger + +commit f36d83a8cb7224f45fdfa1129a616dff56479a09 upstream. + +This driver issues a kernel panic over conditions that do not +justify such drastic action. Change these to log entries with +a stack dump. + +This patch fixes the system crash reported in +https://bugs.launchpad.net/ubuntu/+source/linux/+bug/674285. + +Signed-off-by: Larry Finger +Reported-and-Tested-by: Robie Basik +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/staging/rtl8187se/r8185b_init.c | 32 +++++++++++++++++++++++--------- + 1 file changed, 23 insertions(+), 9 deletions(-) + +--- a/drivers/staging/rtl8187se/r8185b_init.c ++++ b/drivers/staging/rtl8187se/r8185b_init.c +@@ -356,8 +356,12 @@ HwHSSIThreeWire( + } + udelay(10); + } +- if (TryCnt == TC_3W_POLL_MAX_TRY_CNT) +- panic("HwThreeWire(): CmdReg: %#X RE|WE bits are not clear!!\n", u1bTmp); ++ if (TryCnt == TC_3W_POLL_MAX_TRY_CNT) { ++ printk(KERN_ERR "rtl8187se: HwThreeWire(): CmdReg:" ++ " %#X RE|WE bits are not clear!!\n", u1bTmp); ++ dump_stack(); ++ return 0; ++ } + + // RTL8187S HSSI Read/Write Function + u1bTmp = read_nic_byte(dev, RF_SW_CONFIG); +@@ -397,13 +401,23 @@ HwHSSIThreeWire( + int idx; + int ByteCnt = nDataBufBitCnt / 8; + //printk("%d\n",nDataBufBitCnt); +- if ((nDataBufBitCnt % 8) != 0) +- panic("HwThreeWire(): nDataBufBitCnt(%d) should be multiple of 8!!!\n", +- nDataBufBitCnt); +- +- if (nDataBufBitCnt > 64) +- panic("HwThreeWire(): nDataBufBitCnt(%d) should <= 64!!!\n", +- nDataBufBitCnt); ++ if ((nDataBufBitCnt % 8) != 0) { ++ printk(KERN_ERR "rtl8187se: " ++ "HwThreeWire(): nDataBufBitCnt(%d)" ++ " should be multiple of 8!!!\n", ++ nDataBufBitCnt); ++ dump_stack(); ++ nDataBufBitCnt += 8; ++ nDataBufBitCnt &= ~7; ++ } ++ ++ if (nDataBufBitCnt > 64) { ++ printk(KERN_ERR "rtl8187se: HwThreeWire():" ++ " nDataBufBitCnt(%d) should <= 64!!!\n", ++ nDataBufBitCnt); ++ dump_stack(); ++ nDataBufBitCnt = 64; ++ } + + for(idx = 0; idx < ByteCnt; idx++) + {