Linux 3.0.32
Greg KH
maintainerI'm announcing the release of the 3.0.32 kernel.
All users of the 3.0 kernel series must upgrade.
The updated 3.0.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.0.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/networking/ip-sysctl.txt | 4 - Makefile | 2 arch/arm/kernel/smp.c | 4 - arch/arm/kernel/sys_arm.c | 2 arch/arm/mach-orion5x/mpp.h | 4 - arch/arm/mm/fault.c | 4 + arch/ia64/include/asm/unistd.h | 3 - arch/ia64/kernel/entry.S | 3 + arch/sparc/kernel/central.c | 2 arch/sparc/mm/ultra.S | 6 +- arch/tile/kernel/compat_signal.c | 12 ++--- arch/x86/kernel/setup_percpu.c | 14 +++++ arch/x86/xen/enlighten.c | 7 ++ arch/x86/xen/mmu.c | 7 ++ drivers/acpi/sleep.c | 8 +++ drivers/crypto/Kconfig | 1 drivers/gpio/Kconfig | 11 ++-- drivers/gpio/pch_gpio.c | 1 drivers/md/md.c | 2 drivers/media/rc/ene_ir.c | 32 ++++++------- drivers/media/rc/fintek-cir.c | 20 ++++---- drivers/media/rc/ite-cir.c | 20 ++++---- drivers/media/rc/nuvoton-cir.c | 36 +++++++-------- drivers/media/rc/winbond-cir.c | 78 ++++++++++++++++----------------- drivers/net/Kconfig | 11 ++-- drivers/net/pch_gbe/pch_gbe_main.c | 50 ++++++++++++++++----- drivers/net/pch_gbe/pch_gbe_param.c | 15 +++--- drivers/net/sky2.c | 31 ++++++++----- drivers/net/sky2.h | 1 drivers/net/sungem.c | 2 drivers/net/tg3.c | 18 ++++++- drivers/net/usb/asix.c | 4 - drivers/net/usb/cdc_ether.c | 30 +++++++++++- drivers/net/usb/smsc95xx.c | 2 drivers/net/usb/usbnet.c | 54 ++++++++++++++++------ drivers/platform/x86/sony-laptop.c | 2 drivers/regulator/max8997.c | 2 drivers/scsi/hpsa.c | 4 - fs/ext3/ialloc.c | 8 ++- fs/ext4/ialloc.c | 8 ++- fs/ext4/xattr.c | 7 +- fs/jffs2/gc.c | 2 fs/nfs/nfs4proc.c | 1 fs/super.c | 2 include/asm-generic/statfs.h | 2 include/linux/seqlock.h | 2 include/linux/usb/usbnet.h | 3 - init/do_mounts.c | 2 kernel/compat.c | 63 +++++++++++++++++++------- kernel/fork.c | 3 + mm/hugetlb.c | 1 mm/memcontrol.c | 6 ++ mm/nobootmem.c | 3 - mm/percpu.c | 10 ++++ net/core/dev.c | 20 ++++++++ net/ipv4/tcp.c | 12 ++--- net/ipv4/tcp_input.c | 2 net/l2tp/l2tp_ip.c | 3 - net/sched/sch_netem.c | 6 -- sound/pci/echoaudio/echoaudio_dsp.c | 2 sound/pci/hda/hda_intel.c | 6 +- 61 files changed, 450 insertions(+), 233 deletions(-)
Alexander Clouter (1):
crypto: mv_cesa requires on CRYPTO_HASH to build
Axel Lin (1):
regulator: Fix the logic to ensure new voltage setting in valid range
Ben Hutchings (1):
ARM: orion5x: Fix GPIO enable bits for MPP9
Bjørn Mork (1):
cdc_ether: Ignore bogus union descriptor for RNDIS devices
Chris Metcalf (2):
hugetlb: prevent BUG_ON in hugetlb_fault() -> hugetlb_cow() arch/tile: apply commit 74fca9da0 to the compat signal handling as well
Colin Cross (1):
ARM: 7414/1: SMP: prevent use of the console when using idmap_pgd
Dan Carpenter (1):
pch_gbe: memory corruption calling pch_gbe_validate_option()
Dan Williams (1):
cdc_ether: add Novatel USB551L device IDs for FLAG_WWAN
Darren Hart (1):
pch_gbe: Do not abort probe on bad MAC
David Henningsson (1):
ALSA: HDA: Lessen CPU usage when waiting for chip to respond
David S. Miller (1):
sparc64: Do not clobber %g2 in xcall_fetch_glob_regs().
David Vrabel (1):
xen/pci: don't use PCI BIOS service for configuration space accesses
Eric Dumazet (2):
netem: fix possible skb leak
tcp: change tcp_adv_win_scale and tcp_rmem[2]
Eric Sandeen (1):
ext4: avoid deadlock on sync-mounted FS w/o journal
Eric W. Biederman (1):
net: In unregister_netdevice_notifier unregister the netdevices.
Gerard Lledo (1):
sungem: Fix WakeOnLan
Greg Kroah-Hartman (1):
Linux 3.0.32
H. Peter Anvin (1):
asm-generic: Use __BITS_PER_LONG in statfs.h
Ingo van Lil (1):
asix: Fix tx transfer padding for full-speed USB
Jan Kara (2):
ext3: Fix error handling on inode bitmap corruption
ext4: fix error handling on inode bitmap corruption
Jan Kiszka (1):
compat: Fix RT signal mask corruption via sigprocmask
Jonathan Brassow (1):
MD: Add del_timer_sync to mddev_suspend (fix nasty panic)
Jonathan Nieder (1):
NFSv4: Revalidate uid/gid after open
Josh Boyer (1):
sony-laptop: Enable keyboard backlight by default
Josh Cartwright (1):
jffs2: Fix lock acquisition order bug in gc path
Kazuya Mio (1):
wake up s_wait_unfrozen when ->freeze_fs fails
Konrad Rzeszutek Wilk (1):
xen/pte: Fix crashes when trying to see non-existent PGD/PMD/PUD/PTEs
Lan Tianyu (1):
ACPI / PM: Add Sony Vaio VPCCW29FX to nonvs blacklist.
Linus Torvalds (1):
Fix __read_seqcount_begin() to use ACCESS_ONCE for sequence value read
Luis Henriques (1):
media: rc: Postpone ISR registration
Mark Hills (1):
ALSA: echoaudio: Remove incorrect part of assertion
Matt Carlson (1):
tg3: Avoid panic from reserved statblk field access
Mike Galbraith (1):
namespaces, pid_ns: fix leakage on fork() failure
Ming Lei (1):
usbnet: fix skb traversing races during unlink(v2)
Paolo Pisati (1):
smsc95xx: mark link down on startup and let PHY interrupt deal with carrier changes
Russ Anderson (1):
mm: nobootmem: fix sign extend problem in __free_pages_memory()
Russell King (1):
ARM: prevent VM_GROWSDOWN mmaps extending below FIRST_USER_ADDRESS
Sasha Levin (2):
net: l2tp: unlock socket lock before returning from l2tp_ip_sendmsg
init: don't try mounting device as nfs root unless type fully matches
Sha Zhengju (1):
memcg: free spare array to avoid memory leak
Stephen M. Cameron (1):
SCSI: hpsa: Add IRQF_SHARED back in for the non-MSI(X) interrupt handler
Tejun Heo (2):
percpu, x86: don't use PMD_SIZE as embedded atom_size on 32bit
percpu: pcpu_embed_first_chunk() should free unused parts after all allocs are complete
Tim Bird (1):
ARM: 7410/1: Add extra clobber registers for assembly in kernel_execve
Tomoya MORINAGA (1):
pch_gpio: Support new device LAPIS Semiconductor ML7831 IOH
Toshiharu Okada (3):
pch_gbe: fixed the issue which receives an unnecessary packet.
pch_gbe: support ML7831 IOH
pch_gbe: Fixed the issue on which PC was frozen when link was downed.
Willy Tarreau (1):
tcp: do_tcp_sendpages() must try to push data out on oom conditions
stephen hemminger (2):
sky2: propogate rx hash when packet is copied
sky2: fix receive length error in mixed non-VLAN/VLAN traffic
Émeric Maschino (1):
ia64: Add accept4() syscall
Greg KH
maintainerDocumentation/networking/ip-sysctl.txt +2 -2
@@ -147,7 +147,7 @@ tcp_adv_win_scale - INTEGER (if tcp_adv_win_scale > 0) or bytes-bytes/2^(-tcp_adv_win_scale), if it is <= 0. Possible values are [-31, 31], inclusive. - Default: 2 + Default: 1 tcp_allowed_congestion_control - STRING Show/set the congestion control choices available to non-privileged
@@ -407,7 +407,7 @@ tcp_rmem - vector of 3 INTEGERs: min, default, max net.core.rmem_max. Calling setsockopt() with SO_RCVBUF disables automatic tuning of that socket's receive buffer size, in which case this value is ignored. - Default: between 87380B and 4MB, depending on RAM size. + Default: between 87380B and 6MB, depending on RAM size. tcp_sack - BOOLEAN Enable select acknowledgments (SACKS).
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 31 +SUBLEVEL = 32 EXTRAVERSION = NAME = Sneaky Weasel
arch/arm/kernel/smp.c +2 -2
@@ -279,8 +279,6 @@ asmlinkage void __cpuinit secondary_start_kernel(void)struct mm_struct *mm = &init_mm;unsigned int cpu =smp_processor_id (); -printk ("CPU%u: Booted secondary processor\n" , cpu); -/* * All kernel threads share the same mm context; grab a * reference and switch to it.
@@ -292,6 +290,8 @@ asmlinkage void __cpuinit secondary_start_kernel(void)enter_lazy_tlb (mm, current);local_flush_tlb_all (); +printk ("CPU%u: Booted secondary processor\n" , cpu); +cpu_init ();preempt_disable ();trace_hardirqs_off ();
arch/arm/kernel/sys_arm.c +1 -1
@@ -115,7 +115,7 @@ int kernel_execve(const char *filename, "Ir" (THREAD_START_SP - sizeof(regs)), "r" (®s), "Ir" (sizeof(regs)) - : "r0", "r1", "r2", "r3", "ip", "lr", "memory"); + : "r0", "r1", "r2", "r3", "r8", "r9", "ip", "lr", "memory"); out:return ret;
arch/arm/mach-orion5x/mpp.h +2 -2
@@ -65,8 +65,8 @@#define MPP8_GIGE MPP(8, 0x1, 0, 0, 1, 1, 1)#define MPP9_UNUSED MPP(9, 0x0, 0, 0, 1, 1, 1) -#define MPP9_GPIO MPP(9, 0x0, 0, 0, 1, 1, 1) -#define MPP9_GIGE MPP(9, 0x1, 1, 1, 1, 1, 1) +#define MPP9_GPIO MPP(9, 0x0, 1, 1, 1, 1, 1) +#define MPP9_GIGE MPP(9, 0x1, 0, 0, 1, 1, 1)#define MPP10_UNUSED MPP(10, 0x0, 0, 0, 1, 1, 1)#define MPP10_GPIO MPP(10, 0x0, 1, 1, 1, 1, 1)
arch/arm/mm/fault.c +3 -1
@@ -266,7 +266,9 @@ good_area:return fault; check_stack: -if (vma->vm_flags &VM_GROWSDOWN && !expand_stack (vma, addr)) +/* Don't allow expansion below FIRST_USER_ADDRESS */ +if (vma->vm_flags &VM_GROWSDOWN && + addr >=FIRST_USER_ADDRESS && !expand_stack (vma, addr)) goto good_area; out:return fault;
arch/ia64/include/asm/unistd.h +2 -1
@@ -321,11 +321,12 @@#define __NR_syncfs 1329#define __NR_setns 1330#define __NR_sendmmsg 1331 +#define __NR_accept4 1334#ifdef __KERNEL__ -#define NR_syscalls 308/* length of syscall table */ +#define NR_syscalls 311/* length of syscall table */ /* * The following defines stop scripts/checksyscalls.sh from complaining about
arch/ia64/kernel/entry.S +3 -0
@@ -1777,6 +1777,9 @@ sys_call_table: data8 sys_syncfs data8 sys_setns // 1330 data8 sys_sendmmsg + data8 sys_ni_syscall /* process_vm_readv */ + data8 sys_ni_syscall /* process_vm_writev */ + data8 sys_accept4 .org sys_call_table + 8*NR_syscalls // guard against failures to increase NR_syscalls #endif /* __IA64_ASM_PARAVIRTUALIZED_NATIVE */
arch/sparc/kernel/central.c +1 -1
@@ -268,4 +268,4 @@ static int __init sunfire_init(void)return 0 ; } -subsys_initcall (sunfire_init); +fs_initcall (sunfire_init);
arch/sparc/mm/ultra.S +3 -3
@@ -495,11 +495,11 @@ xcall_fetch_glob_regs: stx %o7, [%g1 + GR_SNAP_O7] stx %i7, [%g1 + GR_SNAP_I7] /* Don't try this at home kids... */ - rdpr %cwp, %g2 - sub %g2, 1, %g7 + rdpr %cwp, %g3 + sub %g3, 1, %g7 wrpr %g7, %cwp mov %i7, %g7 - wrpr %g2, %cwp + wrpr %g3, %cwp stx %g7, [%g1 + GR_SNAP_RPC] sethi %hi(trap_block), %g7 or %g7, %lo(trap_block), %g7
arch/tile/kernel/compat_signal.c +5 -7
@@ -406,19 +406,17 @@ int compat_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,* Set up registers for signal handler. * Registers that we don't modify keep the value they had from * user-space at the time we took the signal. +* We always pass siginfo and mcontext, regardless of SA_SIGINFO, +* since some things rely on this (e.g. glibc's debug/segfault.c). */ regs->pc =ptr_to_compat_reg (ka->sa.sa_handler); regs->ex1 =PL_ICS_EX1 (USER_PL ,1 );/* set crit sec in handler */ regs->sp =ptr_to_compat_reg (frame); regs->lr = restorer; regs->regs[0 ] = (unsigned long ) usig; - -if (ka->sa.sa_flags &SA_SIGINFO ) { -/* Need extra arguments, so mark to restore caller-saves. */ - regs->regs[1 ] =ptr_to_compat_reg (&frame->info); - regs->regs[2 ] =ptr_to_compat_reg (&frame->uc); - regs->flags |=PT_FLAGS_CALLER_SAVES ; - } + regs->regs[1 ] =ptr_to_compat_reg (&frame->info); + regs->regs[2 ] =ptr_to_compat_reg (&frame->uc); + regs->flags |=PT_FLAGS_CALLER_SAVES ;/* * Notify any tracer that was single-stepping it.
arch/x86/kernel/setup_percpu.c +13 -1
@@ -185,10 +185,22 @@ void __init setup_per_cpu_areas(void)#endif rc = -EINVAL ;if (pcpu_chosen_fc !=PCPU_FC_PAGE ) { -const size_t atom_size = cpu_has_pse ?PMD_SIZE :PAGE_SIZE ;const size_t dyn_size =PERCPU_MODULE_RESERVE +PERCPU_DYNAMIC_RESERVE -PERCPU_FIRST_CHUNK_RESERVE ; +size_t atom_size; +/* +* On 64bit, use PMD_SIZE for atom_size so that embedded +* percpu areas are aligned to PMD. This, in the future, +* can also allow using PMD mappings in vmalloc area. Use +* PAGE_SIZE on 32bit as vmalloc space is highly contended +* and large vmalloc area allocs can easily fail. +*/ +#ifdef CONFIG_X86_64 + atom_size =PMD_SIZE ; +#else + atom_size =PAGE_SIZE ; +#endif rc = pcpu_embed_first_chunk(PERCPU_FIRST_CHUNK_RESERVE, dyn_size, atom_size, pcpu_cpu_distance,
arch/x86/xen/enlighten.c +5 -2
@@ -62,6 +62,7 @@#include <asm/reboot.h> #include <asm/stackprotector.h> #include <asm/hypervisor.h> +#include <asm/pci_x86.h> #include "xen-ops.h" #include "mmu.h"
@@ -1259,8 +1260,10 @@ asmlinkage void __init xen_start_kernel(void)/* Make sure ACS will be enabled */ pci_request_acs (); } - - +#ifdef CONFIG_PCI +/* PCI BIOS service won't work from a PV guest. */ + pci_probe &= ~PCI_PROBE_BIOS ; +#endif xen_raw_console_write ("about to get started...\n" );xen_setup_runstate_info (0 );
arch/x86/xen/mmu.c +6 -1
@@ -320,8 +320,13 @@ static pteval_t pte_mfn_to_pfn(pteval_t val) {if (val & _PAGE_PRESENT) {unsigned long mfn = (val &PTE_PFN_MASK ) >>PAGE_SHIFT ; +unsigned long pfn =mfn_to_pfn (mfn); +pteval_t flags = val &PTE_FLAGS_MASK ; - val = ((pteval_t )mfn_to_pfn (mfn) <<PAGE_SHIFT ) | flags; +if (unlikely (pfn == ~0 )) + val = flags & ~_PAGE_PRESENT; +else + val = ((pteval_t )pfn <<PAGE_SHIFT ) | flags; }return val;
drivers/acpi/sleep.c +8 -0
@@ -422,6 +422,14 @@ static struct dmi_system_id __initdata acpisleep_dmi_table[] = { }, { .callback = init_nvs_nosave, + .ident = "Sony Vaio VPCCW29FX", + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"Sony Corporation" ), + DMI_MATCH(DMI_PRODUCT_NAME, "VPCCW29FX"), + }, + }, + { + .callback = init_nvs_nosave, .ident = "Averatec AV1020-ED2", .matches = { DMI_MATCH(DMI_SYS_VENDOR, "AVERATEC"),
drivers/crypto/Kconfig +1 -0
@@ -173,6 +173,7 @@ config CRYPTO_DEV_MV_CESA select CRYPTO_ALGAPI select CRYPTO_AES select CRYPTO_BLKCIPHER2 + select CRYPTO_HASH help This driver allows you to utilize the Cryptographic Engines and Security Accelerator (CESA) which can be found on the Marvell Orion
drivers/gpio/Kconfig +6 -5
@@ -350,18 +350,19 @@ config GPIO_LANGWELL Say Y here to support Intel Langwell/Penwell GPIO. config GPIO_PCH - tristate "Intel EG20T PCH / OKI SEMICONDUCTOR ML7223 IOH GPIO" + tristate "Intel EG20T PCH/LAPIS Semiconductor IOH(ML7223/ML7831) GPIO" depends on PCI && X86 help This driver is for PCH(Platform controller Hub) GPIO of Intel Topcliff which is an IOH(Input/Output Hub) for x86 embedded processor. This driver can access PCH GPIO device. - This driver also can be used for OKI SEMICONDUCTOR IOH(Input/ - Output Hub), ML7223. + This driver also can be used for LAPIS Semiconductor IOH(Input/ + Output Hub), ML7223 and ML7831. ML7223 IOH is for MP(Media Phone) use. - ML7223 is companion chip for Intel Atom E6xx series. - ML7223 is completely compatible for Intel EG20T PCH. + ML7831 IOH is for general purpose use. + ML7223/ML7831 is companion chip for Intel Atom E6xx series. + ML7223/ML7831 is completely compatible for Intel EG20T PCH. config GPIO_ML_IOH tristate "OKI SEMICONDUCTOR ML7213 IOH GPIO support"
drivers/gpio/pch_gpio.c +1 -0
@@ -287,6 +287,7 @@ static int pch_gpio_resume(struct pci_dev *pdev)static DEFINE_PCI_DEVICE_TABLE (pch_gpio_pcidev_id) = { {PCI_DEVICE (PCI_VENDOR_ID_INTEL ,0x8803 ) }, {PCI_DEVICE (PCI_VENDOR_ID_ROHM ,0x8014 ) }, + {PCI_DEVICE (PCI_VENDOR_ID_ROHM ,0x8803 ) }, {0 , } };MODULE_DEVICE_TABLE (pci, pch_gpio_pcidev_id);
drivers/md/md.c +2 -0
@@ -348,6 +348,8 @@ void mddev_suspend(mddev_t *mddev)synchronize_rcu ();wait_event (mddev->sb_wait,atomic_read (&mddev->active_io) ==0 ); mddev->pers->quiesce (mddev,1 ); + +del_timer_sync (&mddev->safemode_timer); }EXPORT_SYMBOL_GPL (mddev_suspend);
drivers/media/rc/ene_ir.c +16 -16
@@ -1017,22 +1017,6 @@ static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id)spin_lock_init (&dev->hw_lock); -/* claim the resources */ - error = -EBUSY ; - dev->hw_io =pnp_port_start (pnp_dev,0 ); -if (!request_region (dev->hw_io,ENE_IO_SIZE ,ENE_DRIVER_NAME )) { - dev->hw_io =-1 ; - dev->irq =-1 ; - goto error; - } - - dev->irq =pnp_irq (pnp_dev,0 ); -if (request_irq (dev->irq, ene_isr, -IRQF_SHARED ,ENE_DRIVER_NAME , (void *)dev)) { - dev->irq =-1 ; - goto error; - } -pnp_set_drvdata (pnp_dev, dev); dev->pnp_dev = pnp_dev;
@@ -1085,6 +1069,22 @@ static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id)device_set_wakeup_capable (&pnp_dev->dev, true);device_set_wakeup_enable (&pnp_dev->dev, true); +/* claim the resources */ + error = -EBUSY ; + dev->hw_io =pnp_port_start (pnp_dev,0 ); +if (!request_region (dev->hw_io,ENE_IO_SIZE ,ENE_DRIVER_NAME )) { + dev->hw_io =-1 ; + dev->irq =-1 ; + goto error; + } + + dev->irq =pnp_irq (pnp_dev,0 ); +if (request_irq (dev->irq, ene_isr, +IRQF_SHARED ,ENE_DRIVER_NAME , (void *)dev)) { + dev->irq =-1 ; + goto error; + } + error =rc_register_device (rdev);if (error <0 ) goto error;
drivers/media/rc/fintek-cir.c +10 -10
@@ -504,16 +504,6 @@ static int fintek_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_idspin_lock_init (&fintek->fintek_lock); - ret = -EBUSY ; -/* now claim resources */ -if (!request_region (fintek->cir_addr, - fintek->cir_port_len,FINTEK_DRIVER_NAME )) - goto failure; - -if (request_irq (fintek->cir_irq, fintek_cir_isr,IRQF_SHARED , -FINTEK_DRIVER_NAME , (void *)fintek)) - goto failure; -pnp_set_drvdata (pdev, fintek); fintek->pdev = pdev;
@@ -548,6 +538,16 @@ static int fintek_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id/* rx resolution is hardwired to 50us atm, 1, 25, 100 also possible */ rdev->rx_resolution =US_TO_NS (CIR_SAMPLE_PERIOD ); + ret = -EBUSY ; +/* now claim resources */ +if (!request_region (fintek->cir_addr, + fintek->cir_port_len,FINTEK_DRIVER_NAME )) + goto failure; + +if (request_irq (fintek->cir_irq, fintek_cir_isr,IRQF_SHARED , +FINTEK_DRIVER_NAME , (void *)fintek)) + goto failure; + ret =rc_register_device (rdev);if (ret) goto failure;
drivers/media/rc/ite-cir.c +10 -10
@@ -1519,16 +1519,6 @@ static int ite_probe(struct pnp_dev *pdev, const struct pnp_device_id/* initialize raw event */ init_ir_raw_event (&itdev->rawir); - ret = -EBUSY ; -/* now claim resources */ -if (!request_region (itdev->cir_addr, - dev_desc->io_region_size,ITE_DRIVER_NAME )) - goto failure; - -if (request_irq (itdev->cir_irq, ite_cir_isr,IRQF_SHARED , -ITE_DRIVER_NAME , (void *)itdev)) - goto failure; -/* set driver data into the pnp device */ pnp_set_drvdata (pdev, itdev); itdev->pdev = pdev;
@@ -1604,6 +1594,16 @@ static int ite_probe(struct pnp_dev *pdev, const struct pnp_device_id rdev->driver_name =ITE_DRIVER_NAME ; rdev->map_name =RC_MAP_RC6_MCE ; + ret = -EBUSY ; +/* now claim resources */ +if (!request_region (itdev->cir_addr, + dev_desc->io_region_size,ITE_DRIVER_NAME )) + goto failure; + +if (request_irq (itdev->cir_irq, ite_cir_isr,IRQF_SHARED , +ITE_DRIVER_NAME , (void *)itdev)) + goto failure; + ret =rc_register_device (rdev);if (ret) goto failure;
drivers/media/rc/nuvoton-cir.c +18 -18
@@ -1027,24 +1027,6 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id)spin_lock_init (&nvt->nvt_lock);spin_lock_init (&nvt->tx.lock); - ret = -EBUSY ; -/* now claim resources */ -if (!request_region (nvt->cir_addr, -CIR_IOREG_LENGTH ,NVT_DRIVER_NAME )) - goto failure; - -if (request_irq (nvt->cir_irq, nvt_cir_isr,IRQF_SHARED , -NVT_DRIVER_NAME , (void *)nvt)) - goto failure; - -if (!request_region (nvt->cir_wake_addr, -CIR_IOREG_LENGTH ,NVT_DRIVER_NAME )) - goto failure; - -if (request_irq (nvt->cir_wake_irq, nvt_cir_wake_isr,IRQF_SHARED , -NVT_DRIVER_NAME , (void *)nvt)) - goto failure; -pnp_set_drvdata (pdev, nvt); nvt->pdev = pdev;
@@ -1091,6 +1073,24 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id) rdev->tx_resolution =XYZ ;#endif + ret = -EBUSY ; +/* now claim resources */ +if (!request_region (nvt->cir_addr, +CIR_IOREG_LENGTH ,NVT_DRIVER_NAME )) + goto failure; + +if (request_irq (nvt->cir_irq, nvt_cir_isr,IRQF_SHARED , +NVT_DRIVER_NAME , (void *)nvt)) + goto failure; + +if (!request_region (nvt->cir_wake_addr, +CIR_IOREG_LENGTH ,NVT_DRIVER_NAME )) + goto failure; + +if (request_irq (nvt->cir_wake_irq, nvt_cir_wake_isr,IRQF_SHARED , +NVT_DRIVER_NAME , (void *)nvt)) + goto failure; + ret =rc_register_device (rdev);if (ret) goto failure;
drivers/media/rc/winbond-cir.c +39 -39
107 lines not on this page · raw message
drivers/net/Kconfig +6 -5
@@ -2543,7 +2543,7 @@ config S6GMAC source "drivers/net/stmmac/Kconfig" config PCH_GBE - tristate "Intel EG20T PCH / OKI SEMICONDUCTOR ML7223 IOH GbE" + tristate "Intel EG20T PCH/OKI SEMICONDUCTOR IOH(ML7223/ML7831) GbE" depends on PCI select MII ---help---
@@ -2556,10 +2556,11 @@ config PCH_GBE This driver enables Gigabit Ethernet function. This driver also can be used for OKI SEMICONDUCTOR IOH(Input/ - Output Hub), ML7223. - ML7223 IOH is for MP(Media Phone) use. - ML7223 is companion chip for Intel Atom E6xx series. - ML7223 is completely compatible for Intel EG20T PCH. + Output Hub), ML7223/ML7831. + ML7223 IOH is for MP(Media Phone) use. ML7831 IOH is for general + purpose use. + ML7223/ML7831 is companion chip for Intel Atom E6xx series. + ML7223/ML7831 is completely compatible for Intel EG20T PCH. endif # NETDEV_1000
drivers/net/pch_gbe/pch_gbe_main.c +39 -11
98 lines not on this page · raw message
drivers/net/pch_gbe/pch_gbe_param.c +8 -7
@@ -320,10 +320,10 @@ static void pch_gbe_check_copper_options(struct pch_gbe_adapter *adapter)pr_debug ("AutoNeg specified along with Speed or Duplex, AutoNeg parameter ignored\n" ); hw->phy.autoneg_advertised = opt.def; }else { - hw->phy.autoneg_advertised = AutoNeg; -pch_gbe_validate_option ( - (int *)(&hw->phy.autoneg_advertised), - &opt, adapter); +int tmp = AutoNeg; + +pch_gbe_validate_option (&tmp, &opt, adapter); + hw->phy.autoneg_advertised = tmp; } }
@@ -494,9 +494,10 @@ void pch_gbe_check_options(struct pch_gbe_adapter *adapter) .arg = { .l = { .nr = (int)ARRAY_SIZE(fc_list), .p = fc_list } } }; - hw->mac.fc = FlowControl; -pch_gbe_validate_option ((int *)(&hw->mac.fc), - &opt, adapter); +int tmp = FlowControl; + +pch_gbe_validate_option (&tmp, &opt, adapter); + hw->mac.fc = tmp; }pch_gbe_check_copper_options (adapter);
drivers/net/sky2.c +20 -11
@@ -2344,8 +2344,13 @@ static struct sk_buff *receive_copy(struct sky2_port *sky2,skb_copy_from_linear_data (re->skb, skb->data, length); skb->ip_summed = re->skb->ip_summed; skb->csum = re->skb->csum; + skb->rxhash = re->skb->rxhash; + skb->vlan_tci = re->skb->vlan_tci; +pci_dma_sync_single_for_device (sky2->hw->pdev, re->data_addr, length,PCI_DMA_FROMDEVICE ); + re->skb->vlan_tci =0 ; + re->skb->rxhash =0 ; re->skb->ip_summed =CHECKSUM_NONE ;skb_put (skb, length); }
@@ -2430,9 +2435,6 @@ static struct sk_buff *sky2_receive(struct net_device *dev,struct sk_buff *skb =NULL ;u16 count = (status &GMR_FS_LEN ) >>16 ; -if (status &GMR_FS_VLAN ) - count -=VLAN_HLEN ;/* Account for vlan tag */ -netif_printk (sky2, rx_status,KERN_DEBUG , dev,"rx slot %u status 0x%x len %d\n" , sky2->rx_next, status, length);
@@ -2440,6 +2442,9 @@ static struct sk_buff *sky2_receive(struct net_device *dev, sky2->rx_next = (sky2->rx_next +1 ) % sky2->rx_pending;prefetch (sky2->rx_ring + sky2->rx_next); +if (vlan_tx_tag_present (re->skb)) + count -=VLAN_HLEN ;/* Account for vlan tag */ +/* This chip has hardware problems that generates bogus status. * So do only marginal checking and expect higher level protocols * to handle crap frames.
@@ -2497,11 +2502,8 @@ static inline void sky2_tx_done(struct net_device *dev, u16 last) }static inline void sky2_skb_rx (const struct sky2_port *sky2, -u32 status,struct sk_buff *skb) +struct sk_buff *skb) { -if (status &GMR_FS_VLAN ) -__vlan_hwaccel_put_tag (skb,be16_to_cpu (sky2->rx_tag)); -if (skb->ip_summed ==CHECKSUM_NONE )netif_receive_skb (skb);else
@@ -2555,6 +2557,14 @@ static void sky2_rx_checksum(struct sky2_port *sky2, u32 status) } } +static void sky2_rx_tag (struct sky2_port *sky2,u16 length) +{ +struct sk_buff *skb; + + skb = sky2->rx_ring[sky2->rx_next].skb; +__vlan_hwaccel_put_tag (skb,be16_to_cpu (length)); +} +static void sky2_rx_hash (struct sky2_port *sky2,u32 status) {struct sk_buff *skb;
@@ -2613,8 +2623,7 @@ static int sky2_status_intr(struct sky2_hw *hw, int to_do, u16 idx) } skb->protocol =eth_type_trans (skb, dev); - -sky2_skb_rx (sky2, status, skb); +sky2_skb_rx (sky2, skb);/* Stop after net poll weight */ if (++work_done >= to_do)
@@ -2622,11 +2631,11 @@ static int sky2_status_intr(struct sky2_hw *hw, int to_do, u16 idx)break ;case OP_RXVLAN : - sky2->rx_tag = length; +sky2_rx_tag (sky2, length);break ;case OP_RXCHKSVLAN : - sky2->rx_tag = length; +sky2_rx_tag (sky2, length);/* fall through */ case OP_RXCHKS :if (likely (dev->features &NETIF_F_RXCSUM ))
drivers/net/sky2.h +0 -1
@@ -2236,7 +2236,6 @@ struct sky2_port {u16 rx_pending;u16 rx_data_size;u16 rx_nfrags; -u16 rx_tag;struct {unsigned long last;
drivers/net/sungem.c +1 -1
@@ -2363,7 +2363,7 @@ static int gem_suspend(struct pci_dev *pdev, pm_message_t state)netif_device_detach (dev);/* Switch off MAC, remember WOL setting */ - gp->asleep_wol = gp->wake_on_lan; + gp->asleep_wol = !!gp->wake_on_lan;gem_do_stop (dev, gp->asleep_wol); }else gp->asleep_wol =0 ;
drivers/net/tg3.c +16 -2
@@ -740,8 +740,13 @@ static inline unsigned int tg3_has_work(struct tg3_napi *tnapi)if (sblk->status &SD_STATUS_LINK_CHG ) work_exists =1 ; } -/* check for RX/TX work to do */ -if (sblk->idx[0 ].tx_consumer != tnapi->tx_cons || + +/* check for TX work to do */ +if (sblk->idx[0 ].tx_consumer != tnapi->tx_cons) + work_exists =1 ; + +/* check for RX work to do */ +if (tnapi->rx_rcb_prod_idx && *(tnapi->rx_rcb_prod_idx) != tnapi->rx_rcb_ptr) work_exists =1 ;
@@ -5216,6 +5221,9 @@ static int tg3_poll_work(struct tg3_napi *tnapi, int work_done, int budget)return work_done; } +if (!tnapi->rx_rcb_prod_idx) +return work_done; +/* run RX thread, within the bounds set by NAPI. * All RX "locking" is done by ensuring outside * code synchronizes with tg3->napi.poll()
@@ -6626,6 +6634,12 @@ static int tg3_alloc_consistent(struct tg3 *tp)*/ switch (i) {default : +if (tg3_flag (tp,ENABLE_RSS )) { + tnapi->rx_rcb_prod_idx =NULL ; +break ; + } +/* Fall through */ +case 1 : tnapi->rx_rcb_prod_idx = &sblk->idx[0 ].rx_producer;break ;case 2 :
drivers/net/usb/asix.c +2 -2
@@ -398,7 +398,7 @@ static struct sk_buff *asix_tx_fixup(struct usbnet *dev, struct sk_buff *skb,u32 packet_len;u32 padbytes =0xffff0000 ; - padlen = ((skb->len +4 ) %512 ) ?0 :4 ; + padlen = ((skb->len +4 ) & (dev->maxpacket -1 )) ?0 :4 ;if ((!skb_cloned (skb)) && ((headroom + tailroom) >= (4 + padlen))) {
@@ -420,7 +420,7 @@ static struct sk_buff *asix_tx_fixup(struct usbnet *dev, struct sk_buff *skb,cpu_to_le32s (&packet_len);skb_copy_to_linear_data (skb, &packet_len,sizeof (packet_len)); -if ((skb->len %512 ) ==0 ) { +if (padlen) {cpu_to_le32s (&padbytes);memcpy (skb_tail_pointer (skb), &padbytes,sizeof (padbytes));skb_put (skb,sizeof (padbytes));
drivers/net/usb/cdc_ether.c +28 -2
@@ -83,6 +83,7 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)struct cdc_state *info = (void *) &dev->data;int status;int rndis; +bool android_rndis_quirk = false;struct usb_driver *driver =driver_of (intf);struct usb_cdc_mdlm_desc *desc =NULL ;struct usb_cdc_mdlm_detail_desc *detail =NULL ;
@@ -195,6 +196,11 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf) info->control, info->u->bSlaveInterface0, info->data); +/* fall back to hard-wiring for RNDIS */ +if (rndis) { + android_rndis_quirk = true; + goto next_desc; + } goto bad_desc; }if (info->control != intf) {
@@ -271,11 +277,15 @@ next_desc:/* Microsoft ActiveSync based and some regular RNDIS devices lack the * CDC descriptors, so we'll hard-wire the interfaces and not check * for descriptors. +* +* Some Android RNDIS devices have a CDC Union descriptor pointing +* to non-existing interfaces. Ignore that and attempt the same +* hard-wired 0 and 1 interfaces. */ -if (rndis && !info->u) { +if (rndis && (!info->u || android_rndis_quirk)) { info->control =usb_ifnum_to_if (dev->udev,0 ); info->data =usb_ifnum_to_if (dev->udev,1 ); -if (!info->control || !info->data) { +if (!info->control || !info->data || info->control != intf) { dev_dbg(&intf->dev, "rndis: master #0/%p slave #1/%p\n", info->control,
@@ -472,6 +482,7 @@ static const struct driver_info wwan_info = {/*-------------------------------------------------------------------------*/ #define HUAWEI_VENDOR_ID 0x12D1 +#define NOVATEL_VENDOR_ID 0x1410static const struct usb_device_id products [] = {/*
@@ -589,6 +600,21 @@ static const struct usb_device_id products [] = {* because of bugs/quirks in a given product (like Zaurus, above). */ { +/* Novatel USB551L */ +/* This match must come *before* the generic CDC-ETHER match so that +* we get FLAG_WWAN set on the device, since it's descriptors are +* generic CDC-ETHER. +*/ + .match_flags = USB_DEVICE_ID_MATCH_VENDOR + |USB_DEVICE_ID_MATCH_PRODUCT + | USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = NOVATEL_VENDOR_ID, + .idProduct = 0xB001, + .bInterfaceClass = USB_CLASS_COMM, + .bInterfaceSubClass = USB_CDC_SUBCLASS_ETHERNET, + .bInterfaceProtocol = USB_CDC_PROTO_NONE, + .driver_info = (unsigned long )&wwan_info, +}, {USB_INTERFACE_INFO (USB_CLASS_COMM ,USB_CDC_SUBCLASS_ETHERNET ,USB_CDC_PROTO_NONE ), .driver_info = (unsigned long) &cdc_info,
drivers/net/usb/smsc95xx.c +1 -1
@@ -1190,7 +1190,7 @@ static const struct driver_info smsc95xx_info = { .rx_fixup = smsc95xx_rx_fixup, .tx_fixup = smsc95xx_tx_fixup, .status = smsc95xx_status, - .flags = FLAG_ETHER | FLAG_SEND_ZLP, + .flags = FLAG_ETHER | FLAG_SEND_ZLP | FLAG_LINK_INTR, };static const struct usb_device_id products[] = {
drivers/net/usb/usbnet.c +38 -16
153 lines not on this page · raw message
drivers/platform/x86/sony-laptop.c +1 -1
@@ -127,7 +127,7 @@ MODULE_PARM_DESC(minor, "default is -1 (automatic)");#endif -static int kbd_backlight;/* = 1 */ +static int kbd_backlight =1 ;module_param (kbd_backlight, int,0444 );MODULE_PARM_DESC (kbd_backlight, "set this to 0 to disable keyboard backlight, "
drivers/regulator/max8997.c +1 -1
@@ -688,7 +688,7 @@ static int max8997_set_voltage_buck(struct regulator_dev *rdev, } new_val++; - }while (desc->min + desc->step + new_val <= desc->max); + }while (desc->min + desc->step * new_val <= desc->max); new_idx = tmp_idx; new_val = tmp_val;
drivers/scsi/hpsa.c +2 -2
@@ -4037,10 +4037,10 @@ static int hpsa_request_irq(struct ctlr_info *h,if (h->msix_vector || h->msi_vector) rc =request_irq (h->intr[h->intr_mode], msixhandler, -IRQF_DISABLED , h->devname, h); +0 , h->devname, h);else rc =request_irq (h->intr[h->intr_mode], intxhandler, -IRQF_DISABLED , h->devname, h); +IRQF_SHARED , h->devname, h);if (rc) {dev_err (&h->pdev->dev,"unable to get irq %d for %s\n" , h->intr[h->intr_mode], h->devname);
fs/ext3/ialloc.c +6 -2
@@ -561,8 +561,12 @@ got:if (IS_DIRSYNC (inode)) handle->h_sync =1 ;if (insert_inode_locked (inode) <0 ) { - err = -EINVAL ; - goto fail_drop; +/* +* Likely a bitmap corruption causing inode to be allocated +* twice. +*/ + err = -EIO ; + goto fail; }spin_lock (&sbi->s_next_gen_lock); inode->i_generation = sbi->s_next_generation++;
fs/ext4/ialloc.c +6 -2
@@ -1021,8 +1021,12 @@ got:if (IS_DIRSYNC (inode))ext4_handle_sync (handle);if (insert_inode_locked (inode) <0 ) { - err = -EINVAL ; - goto fail_drop; +/* +* Likely a bitmap corruption causing inode to be allocated +* twice. +*/ + err = -EIO ; + goto fail; }spin_lock (&sbi->s_next_gen_lock); inode->i_generation = sbi->s_next_generation++;
fs/ext4/xattr.c +4 -3
@@ -487,18 +487,19 @@ ext4_xattr_release_block(handle_t *handle, struct inode *inode,ext4_free_blocks (handle, inode, bh,0 ,1 ,EXT4_FREE_BLOCKS_METADATA |EXT4_FREE_BLOCKS_FORGET ); +unlock_buffer (bh); }else {le32_add_cpu (&BHDR (bh)->h_refcount,-1 ); +if (ce) +mb_cache_entry_release (ce); +unlock_buffer (bh); error =ext4_handle_dirty_metadata (handle, inode, bh);if (IS_SYNC (inode))ext4_handle_sync (handle);dquot_free_block (inode,1 );ea_bdebug (bh,"refcount now=%d; releasing" ,le32_to_cpu (BHDR (bh)->h_refcount)); -if (ce) -mb_cache_entry_release (ce); } -unlock_buffer (bh); out:ext4_std_error (inode->i_sb, error);return ;
fs/jffs2/gc.c +1 -1
@@ -225,8 +225,8 @@ int jffs2_garbage_collect_pass(struct jffs2_sb_info *c)return 0 ;D1 (printk (KERN_DEBUG "No progress from erasing blocks; doing GC anyway\n" )); -spin_lock (&c->erase_completion_lock);mutex_lock (&c->alloc_sem); +spin_lock (&c->erase_completion_lock); }/* First, work out which block we're garbage-collecting */
fs/nfs/nfs4proc.c +1 -0
@@ -1771,6 +1771,7 @@ static int _nfs4_do_open(struct inode *dir, struct path *path, fmode_t fmode, innfs_setattr_update_inode (state->inode, sattr);nfs_post_op_update_inode (state->inode, opendata->o_res.f_attr); } +nfs_revalidate_inode (server, state->inode);nfs4_opendata_put (opendata);nfs4_put_state_owner (sp); *res = state;
fs/super.c +2 -0
@@ -1009,6 +1009,8 @@ int freeze_super(struct super_block *sb)printk (KERN_ERR "VFS:Filesystem freeze failed\n" ); sb->s_frozen =SB_UNFROZEN ; +smp_wmb (); +wake_up (&sb->s_wait_unfrozen);deactivate_locked_super (sb);return ret; }
include/asm-generic/statfs.h +1 -1
@@ -15,7 +15,7 @@ typedef __kernel_fsid_t fsid_t;* with a 10' pole. */ #ifndef __statfs_word -#if BITS_PER_LONG ==64 +#if __BITS_PER_LONG ==64 #define __statfs_word long#else #define __statfs_word __u32
include/linux/seqlock.h +1 -1
@@ -141,7 +141,7 @@ static inline unsigned __read_seqcount_begin(const seqcount_t *s)unsigned ret; repeat: - ret = s->sequence; + ret =ACCESS_ONCE (s->sequence);if (unlikely (ret &1 )) {cpu_relax (); goto repeat;
include/linux/usb/usbnet.h +2 -1
@@ -191,7 +191,8 @@ extern void usbnet_cdc_status(struct usbnet *, struct urb *);enum skb_state { illegal =0 , tx_start, tx_done, - rx_start, rx_done, rx_cleanup + rx_start, rx_done, rx_cleanup, + unlink_start };struct skb_data {/* skb->cb is one of these */
init/do_mounts.c +1 -1
@@ -432,7 +432,7 @@ void __init change_floppy(char *fmt, ...)void __init mount_root (void ) {#ifdef CONFIG_ROOT_NFS -if (MAJOR (ROOT_DEV ) ==UNNAMED_MAJOR ) { +if (ROOT_DEV == Root_NFS) {if (mount_nfs_root ())return ;
kernel/compat.c +46 -17
71 lines not on this page · raw message
kernel/fork.c +3 -0
@@ -48,6 +48,7 @@#include <linux/audit.h> #include <linux/memcontrol.h> #include <linux/ftrace.h> +#include <linux/proc_fs.h> #include <linux/profile.h> #include <linux/rmap.h> #include <linux/ksm.h>
@@ -1378,6 +1379,8 @@ bad_fork_cleanup_io:if (p->io_context)exit_io_context (p); bad_fork_cleanup_namespaces: +if (unlikely (clone_flags &CLONE_NEWPID )) +pid_ns_release_proc (p->nsproxy->pid_ns);exit_task_namespaces (p); bad_fork_cleanup_mm:if (p->mm) {
mm/hugetlb.c +0 -1
@@ -2398,7 +2398,6 @@ retry_avoidcopy:if (outside_reserve) {BUG_ON (huge_pte_none (pte));if (unmap_ref_private (mm, vma, old_page, address)) { -BUG_ON (page_count (old_page) !=1 );BUG_ON (huge_pte_none (pte));spin_lock (&mm->page_table_lock); goto retry_avoidcopy;
mm/memcontrol.c +6 -0
@@ -4605,6 +4605,12 @@ static void mem_cgroup_usage_unregister_event(struct cgroup *cgrp, swap_buffers:/* Swap primary and spare array */ thresholds->spare = thresholds->primary; +/* If all events are unregistered, free the spare array */ +if (!new) { +kfree (thresholds->spare); + thresholds->spare =NULL ; + } +rcu_assign_pointer (thresholds->primary, new);/* To be sure that nobody uses thresholds */
mm/nobootmem.c +1 -2
@@ -83,8 +83,7 @@ void __init free_bootmem_late(unsigned long addr, unsigned long size)static void __init __free_pages_memory (unsigned long start,unsigned long end) { -int i; -unsigned long start_aligned, end_aligned; +unsigned long i, start_aligned, end_aligned;int order =ilog2 (BITS_PER_LONG ); start_aligned = (start + (BITS_PER_LONG -1 )) & ~(BITS_PER_LONG -1 );
mm/percpu.c +10 -0
@@ -1630,6 +1630,16 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, size_t dyn_size, areas[group] = ptr; base =min (ptr, base); + } + +/* +* Copy data and free unused parts. This should happen after all +* allocations are complete; otherwise, we may end up with +* overlapping groups. +*/ +for (group =0 ; group < ai->nr_groups; group++) { +struct pcpu_group_info *gi = &ai->groups[group]; +void *ptr = areas[group];for (i =0 ; i < gi->nr_units; i++, ptr += ai->unit_size) {if (gi->cpu_map[i] ==NR_CPUS ) {
net/core/dev.c +20 -0
@@ -1406,14 +1406,34 @@ EXPORT_SYMBOL(register_netdevice_notifier);* register_netdevice_notifier(). The notifier is unlinked into the * kernel structures and may then be reused. A negative errno code * is returned on a failure. +* +* After unregistering unregister and down device events are synthesized +* for all devices on the device list to the removed notifier to remove +* the need for special case cleanup code. */ int unregister_netdevice_notifier (struct notifier_block *nb) { +struct net_device *dev; +struct net *net;int err;rtnl_lock (); err =raw_notifier_chain_unregister (&netdev_chain, nb); +if (err) + goto unlock; + +for_each_net (net) { +for_each_netdev (net, dev) { +if (dev->flags &IFF_UP ) { + nb->notifier_call (nb,NETDEV_GOING_DOWN , dev); + nb->notifier_call (nb,NETDEV_DOWN , dev); + } + nb->notifier_call (nb,NETDEV_UNREGISTER , dev); + nb->notifier_call (nb,NETDEV_UNREGISTER_BATCH , dev); + } + } +unlock:rtnl_unlock ();return err; }
net/ipv4/tcp.c +6 -6
@@ -850,8 +850,7 @@ new_segment: wait_for_sndbuf:set_bit (SOCK_NOSPACE , &sk->sk_socket->flags); wait_for_memory: -if (copied) -tcp_push (sk, flags & ~MSG_MORE , mss_now,TCP_NAGLE_PUSH ); +tcp_push (sk, flags & ~MSG_MORE , mss_now,TCP_NAGLE_PUSH );if ((err =sk_stream_wait_memory (sk, &timeo)) !=0 ) goto do_error;
@@ -3221,7 +3220,7 @@ void __init tcp_init(void) {struct sk_buff *skb =NULL ;unsigned long limit; -int i, max_share, cnt; +int i, max_rshare, max_wshare, cnt;unsigned long jiffy = jiffies;BUILD_BUG_ON (sizeof (struct tcp_skb_cb ) >sizeof (skb->cb));
@@ -3285,15 +3284,16 @@ void __init tcp_init(void)/* Set per-socket limits to no more than 1/128 the pressure threshold */ limit = ((unsigned long )sysctl_tcp_mem[1 ]) << (PAGE_SHIFT -7 ); - max_share =min (4UL *1024 *1024 , limit); + max_wshare =min (4UL *1024 *1024 , limit); + max_rshare =min (6UL *1024 *1024 , limit); sysctl_tcp_wmem[0 ] =SK_MEM_QUANTUM ; sysctl_tcp_wmem[1 ] =16 *1024 ; - sysctl_tcp_wmem[2 ] =max (64 *1024 , max_share); + sysctl_tcp_wmem[2 ] =max (64 *1024 , max_wshare); sysctl_tcp_rmem[0 ] =SK_MEM_QUANTUM ; sysctl_tcp_rmem[1 ] =87380 ; - sysctl_tcp_rmem[2 ] =max (87380 , max_share); + sysctl_tcp_rmem[2 ] =max (87380 , max_rshare); printk(KERN_INFO "TCP: Hash tables configured " "(established %u bind %u)\n",
net/ipv4/tcp_input.c +1 -1
@@ -83,7 +83,7 @@ int sysctl_tcp_ecn __read_mostly = 2;EXPORT_SYMBOL (sysctl_tcp_ecn);int sysctl_tcp_dsack__read_mostly =1 ;int sysctl_tcp_app_win__read_mostly =31 ; -int sysctl_tcp_adv_win_scale__read_mostly =2 ; +int sysctl_tcp_adv_win_scale__read_mostly =1 ;EXPORT_SYMBOL (sysctl_tcp_adv_win_scale);int sysctl_tcp_stdurg__read_mostly ;
net/l2tp/l2tp_ip.c +2 -1
@@ -441,8 +441,9 @@ static int l2tp_ip_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *m daddr = lip->l2tp_addr.s_addr; }else { + rc = -EDESTADDRREQ ;if (sk->sk_state !=TCP_ESTABLISHED ) -return -EDESTADDRREQ ; + goto out; daddr = inet->inet_daddr; connected =1 ;
net/sched/sch_netem.c +2 -4
@@ -350,10 +350,8 @@ static int netem_enqueue(struct sk_buff *skb, struct Qdisc *sch)if (q->corrupt && q->corrupt >=get_crandom (&q->corrupt_cor)) {if (!(skb =skb_unshare (skb,GFP_ATOMIC )) || (skb->ip_summed ==CHECKSUM_PARTIAL && -skb_checksum_help (skb))) { - sch->qstats.drops++; -return NET_XMIT_DROP ; - } +skb_checksum_help (skb))) +return qdisc_drop (skb, sch); skb->data[net_random () %skb_headlen (skb)] ^=1 <<(net_random () %8 ); }
sound/pci/echoaudio/echoaudio_dsp.c +1 -1
@@ -475,7 +475,7 @@ static int load_firmware(struct echoaudio *chip)const struct firmware *fw;int box_type, err; -if (snd_BUG_ON (!chip->dsp_code_to_load || !chip->comm_page)) +if (snd_BUG_ON (!chip->comm_page))return -EPERM ;/* See if the ASIC is present and working - only if the DSP is already loaded */
sound/pci/hda/hda_intel.c +4 -2
@@ -702,11 +702,13 @@ static unsigned int azx_rirb_get_response(struct hda_bus *bus, {struct azx *chip = bus->private_data;unsigned long timeout; +unsigned long loopcounter;int do_poll =0 ; again: timeout = jiffies +msecs_to_jiffies (1000 ); -for (;;) { + +for (loopcounter =0 ;; loopcounter++) {if (chip->polling_mode || do_poll) {spin_lock_irq (&chip->reg_lock);azx_update_rirb (chip);
@@ -722,7 +724,7 @@ static unsigned int azx_rirb_get_response(struct hda_bus *bus, }if (time_after (jiffies, timeout))break ; -if (bus->needs_damn_long_delay) +if (bus->needs_damn_long_delay || loopcounter >3000 )msleep (2 );/* temporary workaround */ else {udelay (10 );