Linux 3.2.77
I'm announcing the release of the 3.2.77 kernel.
All users of the 3.2 kernel series should upgrade.
The updated 3.2.y git tree can be found at:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.2.y and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git
The diff from 3.2.76 is attached to this message.
Ben.
------------
Makefile | 2 +- arch/m32r/kernel/setup.c | 3 + arch/parisc/include/asm/siginfo.h | 4 + arch/powerpc/include/asm/synch.h | 2 +- arch/powerpc/include/asm/system.h | 16 +-- arch/sparc/kernel/sys_sparc_64.c | 2 +- arch/um/os-Linux/start_up.c | 2 + arch/x86/include/asm/boot.h | 2 +- arch/x86/include/asm/mmu_context.h | 32 ++++- arch/x86/kernel/process_64.c | 2 +- arch/x86/kernel/reboot.c | 8 ++ arch/x86/kvm/trace.h | 2 +- arch/x86/kvm/x86.c | 17 ++- arch/x86/mm/tlb.c | 28 +++- arch/x86/xen/suspend.c | 3 +- crypto/ablkcipher.c | 1 + crypto/af_alg.c | 55 +++++++- crypto/ahash.c | 5 +- crypto/algif_hash.c | 165 ++++++++++++++++++++++- crypto/algif_skcipher.c | 169 +++++++++++++++++++++--- crypto/shash.c | 4 +- drivers/edac/edac_device.c | 9 +- drivers/edac/edac_mc.c | 15 +-- drivers/edac/edac_pci.c | 9 +- drivers/gpu/drm/radeon/radeon_atombios.c | 12 +- drivers/gpu/drm/radeon/radeon_device.c | 1 + drivers/infiniband/hw/mlx4/ah.c | 1 + drivers/infiniband/hw/qib/qib_verbs_mcast.c | 35 +++-- drivers/input/serio/i8042-x86ia64io.h | 7 + drivers/md/dm-exception-store.h | 2 +- drivers/md/dm-snap-persistent.c | 5 +- drivers/md/dm-snap-transient.c | 4 +- drivers/md/dm-snap.c | 20 +-- drivers/media/dvb/dvb-core/dvb_frontend.c | 6 +- drivers/media/rc/rc-main.c | 2 +- drivers/media/video/gspca/ov534.c | 9 +- drivers/media/video/gspca/topro.c | 6 +- drivers/media/video/usbvision/usbvision-video.c | 47 ++++++- drivers/net/usb/asix.c | 2 +- drivers/net/wireless/ath/ath9k/htc_hst.c | 2 +-
drivers/net/wireless/rtlwifi/rtl8192ce/sw.c | 2 + drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 2 + drivers/net/wireless/rtlwifi/rtl8192de/sw.c | 4 +- drivers/net/wireless/rtlwifi/rtl8192se/sw.c | 6 +-
drivers/net/wireless/rtlwifi/usb.c | 2 + drivers/net/wireless/wl12xx/spi.c | 8 +- drivers/power/test_power.c | 2 + drivers/scsi/initio.c | 16 --- drivers/usb/host/xhci.c | 3 + drivers/usb/serial/cp210x.c | 1 + fs/cifs/cifs_debug.h | 8 +- fs/cifs/connect.c | 2 +- fs/cifs/readdir.c | 1 + fs/cifs/transport.c | 17 ++- fs/hostfs/hostfs_kern.c | 4 +- fs/locks.c | 51 ++++--- fs/nfs/inode.c | 54 +++++--- fs/ocfs2/dlm/dlmmaster.c | 26 ++-- fs/ocfs2/dlmglue.c | 6 + fs/udf/inode.c | 15 +++ fs/udf/unicode.c | 21 ++- include/crypto/hash.h | 6 + include/crypto/if_alg.h | 11 +- include/linux/crypto.h | 8 ++ include/linux/mtd/nand.h | 4 +- include/linux/printk.h | 12 +- kernel/futex.c | 5 + kernel/time/posix-clock.c | 4 +- lib/dma-debug.c | 2 +- mm/memcontrol.c | 11 +- net/ipv6/tcp_ipv6.c | 2 + net/sctp/sm_sideeffect.c | 34 ++--- scripts/bloat-o-meter | 8 +- sound/core/control.c | 2 + sound/core/hrtimer.c | 3 +- sound/core/pcm_compat.c | 13 +- sound/core/seq/seq_clientmgr.c | 2 +- sound/core/seq/seq_compat.c | 9 +- sound/core/seq/seq_queue.c | 2 + sound/core/timer.c | 52 +++++--- sound/pci/fm801.c | 4 +
81 files changed, 869 insertions(+), 294 deletions(-)
Aaron Conole (1):
printk: help pr_debug and pr_devel to optimize out arguments
Alex Deucher (2):
drm/radeon: call hpd_irq_event on resume
drm/radeon: clean up fujitsu quirks
Alexey Khoroshilov (2):
usbvision-video: fix memory leak of alt_max_pkt_size
usbvision: fix leak of usb_dev on failure paths in usbvision_probe()
Andrew Gabbasov (2):
udf: Prevent buffer overrun with multi-byte characters
udf: Check output buffer length when converting name to CS0
Andy Lutomirski (2):
x86/mm: Add barriers and document switch_mm()-vs-flush synchronization x86/mm: Improve switch_mm() barrier comments
Andy Shevchenko (1):
ALSA: fm801: propagate TUNER_ONLY bit when autodetected
Antonio Ospite (1):
gspca: ov534/topro: prevent a division by 0
Arnd Bergmann (1):
SCSI: initio: remove duplicate module device table
Aurélien Francillon (1):
Input: i8042 - add Fujitsu Lifebook U745 to the nomux list
Ben Hutchings (1):
Linux 3.2.77
Boqun Feng (2):
powerpc: Make value-returning atomics fully ordered
powerpc: Make {cmp}xchg* and their atomic_ versions fully ordered
Boris BREZILLON (1):
mtd: nand: fix ONFI parameter page layout
Borislav Petkov (1):
EDAC: Robustify workqueues destruction
Dan Carpenter (1):
ath9k_htc: check for underflow in ath9k_htc_rx_msg()
Dmitry V. Levin (1):
sparc64: fix incorrect sign extension in sys_sparc64_personality
Eric Dumazet (1):
ipv6: tcp: add rcu locking in tcp_v6_send_synack()
H.J. Lu (1):
x86/boot: Double BOOT_HEAP_SIZE to 64KB
Helge Deller (1):
parisc: Fix __ARCH_SI_PREAMBLE_SIZE
Herbert Xu (16):
crypto: af_alg - Fix socket double-free when accept fails
crypto: algif_skcipher - Require setkey before accept(2)
crypto: af_alg - Disallow bind/setkey/... after accept(2)
crypto: af_alg - Add nokey compatibility path
crypto: algif_skcipher - Add nokey compatibility path
crypto: hash - Add crypto_ahash_has_setkey
crypto: algif_hash - Require setkey before accept(2)
crypto: skcipher - Add crypto_skcipher_has_setkey
crypto: algif_skcipher - Add key check exception for cipher_null
crypto: af_alg - Allow af_af_alg_release_parent to be called on nokey path
crypto: algif_hash - Remove custom release parent function
crypto: algif_skcipher - Remove custom release parent function
crypto: af_alg - Forbid bind(2) when nokey child sockets are present
crypto: algif_hash - Fix race condition in hash_check_key
crypto: algif_skcipher - Fix race condition in skcipher_check_key
crypto: algif_skcipher - Load TX SG list after waiting
Jamie Bainbridge (1):
cifs: Ratelimit kernel log messages
Jan Beulich (1):
x86/LDT: Print the real LDT base address
[email protected] (1):
wlcore: SPI - fix spi transfer_list
Jeff Layton (1):
locks: fix unlock when fcntl_setlk races with a close
Karl Heiss (1):
sctp: Prevent soft lockup when sctp_accept() is called during a timeout event
Larry Finger (4):
rtlwifi: rtl8192de: Fix incorrect module parameter descriptions
rtlwifi: rtl8192se: Fix module parameter initialization
rtlwifi: rtl8192ce: Fix handling of module parameters
rtlwifi: rtl8192cu: Add missing parameter setup
Laura Abbott (1):
dma-debug: switch check from _text to _stext
Malcolm Priestley (1):
media: dvb-core: Don't force CAN_INVERSION_AUTO in oneshot mode
Mario Kleiner (1):
x86/reboot/quirks: Add iMac10,1 to pci_reboot_dmi_table[]
Martijn Coenen (1):
memcg: only free spare array when readers are done
Matan Barak (1):
IB/mlx4: Initialize hop_limit when creating address handle
Mike Marciniszyn (1):
IB/qib: fix mcast detach when qp not attached
Mikulas Patocka (1):
dm snapshot: fix hung bios when copy error occurs
Nicolas Boichat (2):
ALSA: pcm: Fix snd_pcm_hw_params struct copy in compat mode
ALSA: seq: Fix snd_seq_call_port_info_ioctl in compat mode
Oliver Freyermuth (1):
USB: cp210x: add ID for ELV Marble Sound Board 1
Oliver Neukum (2):
xhci: refuse loading if nousb is used
usbvision fix overflow of interfaces array
Ouyang Zhaowei (Charles) (1):
x86/xen: don't reset vcpu_info on a cancelled suspend
Paolo Bonzini (2):
KVM: x86: expose MSR_TSC_AUX to userspace
KVM: x86: correctly print #AC in traces
Peter Wu (1):
rtlwifi: fix memory leak for USB device
Rabin Vincent (1):
cifs: fix race between call_async() and reconnect()
Richard Cochran (1):
posix-clock: Fix return code on the poll method's error path
Russell King (1):
rc: allow rc modules to be loaded if rc-main is not a module
Sasha Levin (1):
power: test_power: correctly handle empty writes
Sergey Senozhatsky (1):
scripts/bloat-o-meter: fix python3 syntax error
Sudip Mukherjee (1):
m32r: fix m32104ut_defconfig build fail
Takashi Iwai (7):
ALSA: seq: Fix missing NULL check at remove_events ioctl
ALSA: seq: Fix race at timer setup and close
ALSA: timer: Fix double unlink of active_list
ALSA: timer: Fix race among timer ioctls
ALSA: timer: Harden slave timer list handling
ALSA: hrtimer: Fix stall by hrtimer_cancel()
ALSA: control: Avoid kernel warnings from tlv ioctl with numid 0
Tariq Saeed (1):
ocfs2: NFS hangs in __ocfs2_cluster_lock due to race with ocfs2_unblock_lock
Thomas Gleixner (1):
futex: Drop refcount if requeue_pi() acquired the rtmutex
Trond Myklebust (1):
NFS: Fix attribute cache revalidation
Uri Mashiach (1):
wlcore/wl12xx: spi: fix oops on firmware load
Vasily Averin (1):
cifs_dbg() outputs an uninitialized buffer in cifs_readdir()
Vegard Nossum (3):
udf: limit the maximum number of indirect extents in a row
uml: fix hostfs mknod()
uml: flush stdout before forking
Vladis Dronov (1):
usbvision: fix crash on detecting device with invalid configuration
stephen hemminger (1):
asix: silence log message from oversize packet
xuejiufei (1):
ocfs2/dlm: ignore cleaning the migration mle that is inuse
Signature · 2 lines
Ben Hutchings Sturgeon's Law: Ninety percent of everything is crap.
Makefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 2 -SUBLEVEL = 76 +SUBLEVEL = 77 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/m32r/kernel/setup.c +3 -0
@@ -81,7 +81,10 @@ static struct resource code_resource = { };unsigned long memory_start; +EXPORT_SYMBOL (memory_start); +unsigned long memory_end; +EXPORT_SYMBOL (memory_end);void __init setup_arch (char **);int get_cpuinfo (char *);
arch/parisc/include/asm/siginfo.h +4 -0
@@ -1,6 +1,10 @@#ifndef _PARISC_SIGINFO_H#define _PARISC_SIGINFO_H +#if defined(__LP64__) +#define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int)) +#endif +#include <asm-generic/siginfo.h> #undef NSIGTRAP
arch/powerpc/include/asm/synch.h +1 -1
@@ -44,7 +44,7 @@ static inline void isync(void)MAKE_LWSYNC_SECTION_ENTRY (97 , __lwsync_fixup);#define PPC_ACQUIRE_BARRIER "\n" stringify_in_c(__PPC_ACQUIRE_BARRIER)#define PPC_RELEASE_BARRIER stringify_in_c(LWSYNC) "\n" -#define PPC_ATOMIC_ENTRY_BARRIER "\n" stringify_in_c(LWSYNC) "\n" +#define PPC_ATOMIC_ENTRY_BARRIER "\n" stringify_in_c(sync) "\n"#define PPC_ATOMIC_EXIT_BARRIER "\n" stringify_in_c(sync) "\n"#else #define PPC_ACQUIRE_BARRIER
arch/powerpc/include/asm/system.h +8 -8
@@ -234,12 +234,12 @@ __xchg_u32(volatile void *p, unsigned long val)unsigned long prev; __asm__ __volatile__( -PPC_RELEASE_BARRIER +PPC_ATOMIC_ENTRY_BARRIER "1: lwarx %0,0,%2 \n" PPC405_ERR77(0,%2)" stwcx. %3,0,%2 \n\ bne- 1b" -PPC_ACQUIRE_BARRIER +PPC_ATOMIC_EXIT_BARRIER : "=&r" (prev), "+m" (*(volatile unsigned int *)p) : "r" (p), "r" (val) : "cc", "memory");
@@ -277,12 +277,12 @@ __xchg_u64(volatile void *p, unsigned long val)unsigned long prev; __asm__ __volatile__( -PPC_RELEASE_BARRIER +PPC_ATOMIC_ENTRY_BARRIER "1: ldarx %0,0,%2 \n" PPC405_ERR77(0,%2)" stdcx. %3,0,%2 \n\ bne- 1b" -PPC_ACQUIRE_BARRIER +PPC_ATOMIC_EXIT_BARRIER : "=&r" (prev), "+m" (*(volatile unsigned long *)p) : "r" (p), "r" (val) : "cc", "memory");
@@ -368,14 +368,14 @@ __cmpxchg_u32(volatile unsigned int *p, unsigned long old, unsigned long new)unsigned int prev; __asm__ __volatile__ ( -PPC_RELEASE_BARRIER +PPC_ATOMIC_ENTRY_BARRIER "1: lwarx %0,0,%2 # __cmpxchg_u32\n\ cmpw 0,%0,%3\n\ bne- 2f\n" PPC405_ERR77(0,%2)" stwcx. %4,0,%2\n\ bne- 1b" -PPC_ACQUIRE_BARRIER +PPC_ATOMIC_EXIT_BARRIER "\n\ 2:" : "=&r" (prev), "+m" (*p)
@@ -414,13 +414,13 @@ __cmpxchg_u64(volatile unsigned long *p, unsigned long old, unsigned long new)unsigned long prev; __asm__ __volatile__ ( -PPC_RELEASE_BARRIER +PPC_ATOMIC_ENTRY_BARRIER "1: ldarx %0,0,%2 # __cmpxchg_u64\n\ cmpd 0,%0,%3\n\ bne- 2f\n\ stdcx. %4,0,%2\n\ bne- 1b" -PPC_ACQUIRE_BARRIER +PPC_ATOMIC_EXIT_BARRIER "\n\ 2:" : "=&r" (prev), "+m" (*p)
arch/sparc/kernel/sys_sparc_64.c +1 -1
@@ -517,7 +517,7 @@ out: SYSCALL_DEFINE1(sparc64_personality, unsigned long, personality) { -int ret; +long ret;if (personality (current->personality) ==PER_LINUX32 &&personality (personality) ==PER_LINUX )
arch/um/os-Linux/start_up.c +2 -0
@@ -95,6 +95,8 @@ static int start_ptraced_child(void) {int pid, n, status; +fflush (stdout); + pid =fork ();if (pid ==0 )ptrace_child ();
arch/x86/include/asm/boot.h +1 -1
@@ -32,7 +32,7 @@#define BOOT_HEAP_SIZE 0x400000#else /* !CONFIG_KERNEL_BZIP2 */ -#define BOOT_HEAP_SIZE 0x8000 +#define BOOT_HEAP_SIZE 0x10000#endif /* !CONFIG_KERNEL_BZIP2 */
arch/x86/include/asm/mmu_context.h +31 -1
@@ -87,7 +87,34 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,#endif cpumask_set_cpu (cpu,mm_cpumask (next)); -/* Re-load page tables */ +/* +* Re-load page tables. +* +* This logic has an ordering constraint: +* +* CPU 0: Write to a PTE for 'next' +* CPU 0: load bit 1 in mm_cpumask. if nonzero, send IPI. +* CPU 1: set bit 1 in next's mm_cpumask +* CPU 1: load from the PTE that CPU 0 writes (implicit) +* +* We need to prevent an outcome in which CPU 1 observes +* the new PTE value and CPU 0 observes bit 1 clear in +* mm_cpumask. (If that occurs, then the IPI will never +* be sent, and CPU 0's TLB will contain a stale entry.) +* +* The bad outcome can occur if either CPU's load is +* reordered before that CPU's store, so both CPUs must +* execute full barriers to prevent this from happening. +* +* Thus, switch_mm needs a full barrier between the +* store to mm_cpumask and any operation that could load +* from next->pgd. TLB fills are special and can happen +* due to instruction fetches or for no reason at all, +* and neither LOCK nor MFENCE orders them. +* Fortunately, load_cr3() is serializing and gives the +* ordering guarantee we need. +* +*/ load_cr3 (next->pgd);/* stop flush ipis for the previous mm */
@@ -108,6 +135,9 @@ static inline void switch_mm(struct mm_struct *prev, struct mm_struct *next,/* We were in lazy tlb mode and leave_mm disabled * tlb flush IPI delivery. We must reload CR3 * to make sure to use no freed page tables. +* +* As above, load_cr3() is serializing and orders TLB +* fills with respect to the mm_cpumask write. */ load_cr3 (next->pgd);load_mm_ldt (next);
arch/x86/kernel/process_64.c +1 -1
@@ -221,7 +221,7 @@ void release_thread(struct task_struct *dead_task)if (dead_task->mm->context.ldt) {printk ("WARNING: dead process %8s still has LDT? <%p/%d>\n" , dead_task->comm, - dead_task->mm->context.ldt, + dead_task->mm->context.ldt->entries, dead_task->mm->context.ldt->size);BUG (); }
arch/x86/kernel/reboot.c +8 -0
@@ -412,6 +412,14 @@ static struct dmi_system_id __initdata pci_reboot_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "iMac9,1"), }, }, + { /* Handle problems with rebooting on the iMac10,1. */ + .callback = set_pci_reboot, + .ident = "Apple iMac10,1", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Apple Inc."), + DMI_MATCH(DMI_PRODUCT_NAME, "iMac10,1"), + }, + },/* ASRock */ {/* Handle problems with rebooting on ASRock Q1900DC-ITX */ .callback = set_pci_reboot,
arch/x86/kvm/trace.h +1 -1
@@ -326,7 +326,7 @@ TRACE_EVENT(kvm_inj_virq,#define kvm_trace_sym_exc \ EXS(DE), EXS(DB), EXS(BP), EXS(OF), EXS(BR), EXS(UD), EXS(NM), \ EXS(DF), EXS(TS), EXS(NP), EXS(SS), EXS(GP), EXS(PF), \ - EXS(MF), EXS(MC) + EXS(MF), EXS(AC), EXS(MC)/* * Tracepoint for kvm interrupt injection:
arch/x86/kvm/x86.c +16 -1
@@ -834,7 +834,8 @@ static u32 msrs_to_save[] = {#ifdef CONFIG_X86_64 MSR_CSTAR ,MSR_KERNEL_GS_BASE ,MSR_SYSCALL_MASK ,MSR_LSTAR , #endif -MSR_IA32_TSC ,MSR_IA32_CR_PAT ,MSR_VM_HSAVE_PA +MSR_IA32_TSC ,MSR_IA32_CR_PAT ,MSR_VM_HSAVE_PA , + MSR_TSC_AUX, };static unsigned num_msrs_to_save;
@@ -3867,6 +3868,20 @@ static void kvm_init_msr_list(void)for (i = j =KVM_SAVE_MSRS_BEGIN ; i <ARRAY_SIZE (msrs_to_save); i++) {if (rdmsr_safe (msrs_to_save[i], &dummy[0 ], &dummy[1 ]) <0 )continue ; + +/* +* Even MSRs that are valid in the host may not be exposed +* to the guests in some cases. +*/ +switch (msrs_to_save[i]) { +case MSR_TSC_AUX : +if (!kvm_x86_ops->rdtscp_supported ()) +continue ; +break ; +default : +break ; + } +if (j < i) msrs_to_save[j] = msrs_to_save[i]; j++;
arch/x86/mm/tlb.c +24 -4
@@ -278,7 +278,9 @@ void flush_tlb_current_task(void)preempt_disable (); +/* This is an implicit full barrier that synchronizes with switch_mm. */ local_flush_tlb (); +if (cpumask_any_but (mm_cpumask (mm),smp_processor_id ()) < nr_cpu_ids)flush_tlb_others (mm_cpumask (mm), mm,TLB_FLUSH_ALL );preempt_enable ();
@@ -289,10 +291,20 @@ void flush_tlb_mm(struct mm_struct *mm)preempt_disable ();if (current->active_mm == mm) { -if (current->mm) +if (current->mm) { +/* +* This is an implicit full barrier (MOV to CR) that +* synchronizes with switch_mm. +*/ local_flush_tlb (); -else + }else {leave_mm (smp_processor_id ()); +/* Synchronize with switch_mm. */ +smp_mb (); + } + }else { +/* Synchronize with switch_mm. */ +smp_mb (); }if (cpumask_any_but (mm_cpumask (mm),smp_processor_id ()) < nr_cpu_ids)flush_tlb_others (mm_cpumask (mm), mm,TLB_FLUSH_ALL );
@@ -307,10 +319,18 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long va)preempt_disable ();if (current->active_mm == mm) { -if (current->mm) +if (current->mm) { +/* +* Implicit full barrier (INVLPG) that synchronizes +* with switch_mm. +*/ __flush_tlb_one (va); -else + }else {leave_mm (smp_processor_id ()); + +/* Synchronize with switch_mm. */ +smp_mb (); + } }if (cpumask_any_but (mm_cpumask (mm),smp_processor_id ()) < nr_cpu_ids)
arch/x86/xen/suspend.c +2 -1
@@ -30,7 +30,8 @@ void xen_arch_hvm_post_suspend(int suspend_cancelled) {#ifdef CONFIG_XEN_PVHVM int cpu; -xen_hvm_init_shared_info (); +if (!suspend_cancelled) +xen_hvm_init_shared_info ();xen_callback_vector ();xen_unplug_emulated_devices ();if (xen_feature (XENFEAT_hvm_safe_pvclock)) {
crypto/ablkcipher.c +1 -0
@@ -379,6 +379,7 @@ static int crypto_init_ablkcipher_ops(struct crypto_tfm *tfm, u32 type, } crt->base =__crypto_ablkcipher_cast (tfm); crt->ivsize = alg->ivsize; + crt->has_setkey = alg->max_keysize;return 0 ; }
crypto/af_alg.c +49 -6
120 lines not on this page · raw message
crypto/ahash.c +4 -1
@@ -369,6 +369,7 @@ static int crypto_ahash_init_tfm(struct crypto_tfm *tfm)struct ahash_alg *alg =crypto_ahash_alg (hash); hash->setkey = ahash_nosetkey; + hash->has_setkey = false; hash->export = ahash_no_export; hash->import = ahash_no_import;
@@ -381,8 +382,10 @@ static int crypto_ahash_init_tfm(struct crypto_tfm *tfm) hash->finup = alg->finup ?: ahash_def_finup; hash->digest = alg->digest; -if (alg->setkey) +if (alg->setkey) { hash->setkey = alg->setkey; + hash->has_setkey = true; + }if (alg->export) hash->export = alg->export;if (alg->import)
crypto/algif_hash.c +158 -7
214 lines not on this page · raw message
crypto/algif_skcipher.c +154 -15
241 lines not on this page · raw message
crypto/shash.c +3 -1
@@ -354,8 +354,10 @@ int crypto_init_shash_ops_async(struct crypto_tfm *tfm) crt->finup = shash_async_finup; crt->digest = shash_async_digest; -if (alg->setkey) +if (alg->setkey) { crt->setkey = shash_async_setkey; + crt->has_setkey = true; + }if (alg->export) crt->export = shash_async_export;if (alg->import)
drivers/edac/edac_device.c +3 -6
@@ -444,13 +444,10 @@ void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,*/ void edac_device_workq_teardown (struct edac_device_ctl_info *edac_dev) { -int status; + edac_dev->op_state =OP_OFFLINE ; - status =cancel_delayed_work (&edac_dev->work); -if (status ==0 ) { -/* workq instance might be running, wait for it */ -flush_workqueue (edac_workqueue); - } +cancel_delayed_work_sync (&edac_dev->work); +flush_workqueue (edac_workqueue); }/*
drivers/edac/edac_mc.c +3 -12
@@ -348,19 +348,10 @@ static void edac_mc_workq_setup(struct mem_ctl_info *mci, unsigned msec,*/ static void edac_mc_workq_teardown (struct mem_ctl_info *mci) { -int status; - -if (mci->op_state !=OP_RUNNING_POLL ) -return ; - - status =cancel_delayed_work (&mci->work); -if (status ==0 ) { -debugf0 ("%s() not canceled, flush the queue\n" , - __func__); + mci->op_state =OP_OFFLINE ; -/* workq instance might be running, wait for it */ -flush_workqueue (edac_workqueue); - } +cancel_delayed_work_sync (&mci->work); +flush_workqueue (edac_workqueue); }/*
drivers/edac/edac_pci.c +4 -5
@@ -275,13 +275,12 @@ static void edac_pci_workq_setup(struct edac_pci_ctl_info *pci,*/ static void edac_pci_workq_teardown (struct edac_pci_ctl_info *pci) { -int status; -debugf0 ("%s()\n" , __func__); - status =cancel_delayed_work (&pci->work); -if (status ==0 ) -flush_workqueue (edac_workqueue); + pci->op_state =OP_OFFLINE ; + +cancel_delayed_work_sync (&pci->work); +flush_workqueue (edac_workqueue); }/*
drivers/gpu/drm/radeon/radeon_atombios.c +3 -9
@@ -446,7 +446,9 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev, }/* Fujitsu D3003-S2 board lists DVI-I as DVI-D and VGA */ -if (((dev->pdev->device ==0x9802 ) || (dev->pdev->device ==0x9806 )) && +if (((dev->pdev->device ==0x9802 ) || + (dev->pdev->device ==0x9805 ) || + (dev->pdev->device ==0x9806 )) && (dev->pdev->subsystem_vendor ==0x1734 ) && (dev->pdev->subsystem_device ==0x11bd )) {if (*connector_type ==DRM_MODE_CONNECTOR_VGA ) {
@@ -457,14 +459,6 @@ static bool radeon_atom_apply_quirks(struct drm_device *dev, } } -/* Fujitsu D3003-S2 board lists DVI-I as DVI-I and VGA */ -if ((dev->pdev->device ==0x9805 ) && - (dev->pdev->subsystem_vendor ==0x1734 ) && - (dev->pdev->subsystem_device ==0x11bd )) { -if (*connector_type ==DRM_MODE_CONNECTOR_VGA ) -return false; - } -return true; }
drivers/gpu/drm/radeon/radeon_device.c +1 -0
@@ -960,6 +960,7 @@ int radeon_resume_kms(struct drm_device *dev) }drm_kms_helper_poll_enable (dev); +drm_helper_hpd_irq_event (dev);return 0 ; }
drivers/infiniband/hw/mlx4/ah.c +1 -0
@@ -112,6 +112,7 @@ static struct ib_ah *create_iboe_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr ah->av.eth.port_pd =cpu_to_be32 (to_mpd (pd)->pdn | (ah_attr->port_num <<24 )); ah->av.eth.gid_index = ah_attr->grh.sgid_index; ah->av.eth.vlan =cpu_to_be16 (vlan_tag); + ah->av.eth.hop_limit = ah_attr->grh.hop_limit;if (ah_attr->static_rate) { ah->av.eth.stat_rate = ah_attr->static_rate +MLX4_STAT_RATE_OFFSET ; while (ah->av.eth.stat_rate > IB_RATE_2_5_GBPS + MLX4_STAT_RATE_OFFSET &&
drivers/infiniband/hw/qib/qib_verbs_mcast.c +15 -20
@@ -286,15 +286,13 @@ int qib_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid)struct qib_ibdev *dev =to_idev (ibqp->device);struct qib_ibport *ibp =to_iport (ibqp->device, qp->port_num);struct qib_mcast *mcast =NULL ; -struct qib_mcast_qp *p, *tmp; +struct qib_mcast_qp *p, *tmp, *delp =NULL ;struct rb_node *n;int last =0 ;int ret; -if (ibqp->qp_num <=1 || qp->state ==IB_QPS_RESET ) { - ret = -EINVAL ; - goto bail; - } +if (ibqp->qp_num <=1 || qp->state ==IB_QPS_RESET ) +return -EINVAL ;spin_lock_irq (&ibp->lock);
@@ -303,8 +301,7 @@ int qib_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid)while (1 ) {if (n ==NULL ) {spin_unlock_irq (&ibp->lock); - ret = -EINVAL ; - goto bail; +return -EINVAL ; } mcast = rb_entry(n, struct qib_mcast, rb_node);
@@ -328,6 +325,7 @@ int qib_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid)*/ list_del_rcu (&p->list); mcast->n_attached--; + delp = p;/* If this was the last attached QP, remove the GID too. */ if (list_empty (&mcast->qp_list)) {
@@ -338,15 +336,16 @@ int qib_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) }spin_unlock_irq (&ibp->lock); +/* QP not attached */ +if (!delp) +return -EINVAL ; +/* +* Wait for any list walkers to finish before freeing the +* list element. +*/ +wait_event (mcast->wait,atomic_read (&mcast->refcount) <=1 ); +qib_mcast_qp_free (delp); -if (p) { -/* -* Wait for any list walkers to finish before freeing the -* list element. -*/ -wait_event (mcast->wait,atomic_read (&mcast->refcount) <=1 ); -qib_mcast_qp_free (p); - }if (last) {atomic_dec (&mcast->refcount);wait_event (mcast->wait, !atomic_read (&mcast->refcount));
@@ -355,11 +354,7 @@ int qib_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) dev->n_mcast_grps_allocated--;spin_unlock_irq (&dev->n_mcast_grps_lock); } - - ret =0 ; - -bail: -return ret; +return 0 ; }int qib_mcast_tree_empty (struct qib_ibport *ibp)
drivers/input/serio/i8042-x86ia64io.h +7 -0
@@ -258,6 +258,13 @@ static const struct dmi_system_id __initconst i8042_dmi_nomux_table[] = { }, }, { +/* Fujitsu Lifebook U745 */ + .matches = { +DMI_MATCH (DMI_SYS_VENDOR ,"FUJITSU" ), + DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK U745"), + }, + }, + {/* Fujitsu T70H */ .matches = { DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU"),
drivers/md/dm-exception-store.h +1 -1
@@ -70,7 +70,7 @@ struct dm_exception_store_type {* Update the metadata with this exception. */ void (*commit_exception) (struct dm_exception_store *store, -struct dm_exception *e, +struct dm_exception *e,int valid,void (*callback) (void *,int success),void *callback_context);
drivers/md/dm-snap-persistent.c +4 -1
@@ -646,7 +646,7 @@ static int persistent_prepare_exception(struct dm_exception_store *store, }static void persistent_commit_exception (struct dm_exception_store *store, -struct dm_exception *e, +struct dm_exception *e,int valid,void (*callback) (void *,int success),void *callback_context) {
@@ -655,6 +655,9 @@ static void persistent_commit_exception(struct dm_exception_store *store,struct core_exception ce;struct commit_callback *cb; +if (!valid) + ps->valid =0 ; + ce.old_chunk = e->old_chunk; ce.new_chunk = e->new_chunk;write_exception (ps, ps->current_committed++, &ce);
drivers/md/dm-snap-transient.c +2 -2
@@ -52,12 +52,12 @@ static int transient_prepare_exception(struct dm_exception_store *store, }static void transient_commit_exception (struct dm_exception_store *store, -struct dm_exception *e, +struct dm_exception *e,int valid,void (*callback) (void *,int success),void *callback_context) {/* Just succeed */ -callback (callback_context,1 ); +callback (callback_context, valid); } static void transient_usage(struct dm_exception_store *store,
drivers/md/dm-snap.c +5 -15
@@ -1393,8 +1393,9 @@ static void __invalidate_snapshot(struct dm_snapshot *s, int err)dm_table_event (s->ti->table); } -static void pending_complete (struct dm_snap_pending_exception *pe,int success) +static void pending_complete (void *context,int success) { +struct dm_snap_pending_exception *pe = context;struct dm_exception *e;struct dm_snapshot *s = pe->snap;struct bio *origin_bios =NULL ;
@@ -1464,24 +1465,13 @@ out:free_pending_exception (pe); } -static void commit_callback (void *context,int success) -{ -struct dm_snap_pending_exception *pe = context; - -pending_complete (pe, success); -} -static void complete_exception (struct dm_snap_pending_exception *pe) {struct dm_snapshot *s = pe->snap; -if (unlikely (pe->copy_error)) -pending_complete (pe,0 ); - -else -/* Update the metadata if we are persistent */ - s->store->type->commit_exception (s->store, &pe->e, - commit_callback, pe); +/* Update the metadata if we are persistent */ + s->store->type->commit_exception (s->store, &pe->e, !pe->copy_error, + pending_complete, pe); }/*
drivers/media/dvb/dvb-core/dvb_frontend.c +3 -3
@@ -1661,9 +1661,9 @@ static int dvb_frontend_ioctl_legacy(struct file *file,memcpy (info, &fe->ops.info,sizeof (struct dvb_frontend_info ));dvb_frontend_get_frequency_limits (fe, &info->frequency_min, &info->frequency_max); -/* Force the CAN_INVERSION_AUTO bit on. If the frontend doesn't -* do it, it is done for it. */ - info->caps |=FE_CAN_INVERSION_AUTO ; +/* Set CAN_INVERSION_AUTO bit on in other than oneshot mode */ +if (!(fepriv->tune_mode_flags &FE_TUNE_MODE_ONESHOT )) + info->caps |=FE_CAN_INVERSION_AUTO ; err =0 ;break ; }
drivers/media/rc/rc-main.c +1 -1
@@ -54,7 +54,7 @@ struct rc_map *rc_map_get(const char *name)struct rc_map_list *map; map =seek_rc_map (name); -#ifdef MODULE +#ifdef CONFIG_MODULES if (!map) {int rc =request_module (name);if (rc <0 ) {
drivers/media/video/gspca/ov534.c +7 -2
@@ -1481,8 +1481,13 @@ static void sd_set_streamparm(struct gspca_dev *gspca_dev,struct v4l2_fract *tpf = &cp->timeperframe;struct sd *sd = (struct sd *) gspca_dev; -/* Set requested framerate */ - sd->frame_rate = tpf->denominator / tpf->numerator; +if (tpf->numerator ==0 || tpf->denominator ==0 ) +/* Set default framerate */ + sd->frame_rate =30 ; +else +/* Set requested framerate */ + sd->frame_rate = tpf->denominator / tpf->numerator; +if (gspca_dev->streaming)set_frame_rate (gspca_dev);
drivers/media/video/gspca/topro.c +5 -1
@@ -4789,7 +4789,11 @@ static void sd_set_streamparm(struct gspca_dev *gspca_dev,struct v4l2_fract *tpf = &cp->timeperframe;int fr, i; - sd->framerate = tpf->denominator / tpf->numerator; +if (tpf->numerator ==0 || tpf->denominator ==0 ) + sd->framerate =30 ; +else + sd->framerate = tpf->denominator / tpf->numerator; +if (gspca_dev->streaming)setframerate (gspca_dev);
drivers/media/video/usbvision/usbvision-video.c +40 -7
99 lines not on this page · raw message
drivers/net/usb/asix.c +1 -1
@@ -361,7 +361,7 @@ static int asix_rx_fixup_internal(struct usbnet *dev, struct sk_buff *skb, }if (rx->size > dev->net->mtu +ETH_HLEN +VLAN_HLEN ) { -netdev_err (dev->net,"asix_rx_fixup() Bad RX Length %d\n" , +netdev_dbg (dev->net,"asix_rx_fixup() Bad RX Length %d\n" , rx->size);kfree_skb (rx->ax_skb);return 0 ;
drivers/net/wireless/ath/ath9k/htc_hst.c +1 -1
@@ -377,7 +377,7 @@ void ath9k_htc_rx_msg(struct htc_target *htc_handle, htc_hdr = (struct htc_frame_hdr *) skb->data; epid = htc_hdr->endpoint_id; -if (epid >=ENDPOINT_MAX ) { +if (epid <0 || epid >=ENDPOINT_MAX ) {if (pipe_id !=USB_REG_IN_PIPE )dev_kfree_skb_any (skb);else
drivers/net/wireless/rtlwifi/rtl8192ce/sw.c +2 -0
@@ -138,6 +138,8 @@ int rtl92c_init_sw_vars(struct ieee80211_hw *hw) rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; + rtlpriv->cfg->mod_params->sw_crypto = + rtlpriv->cfg->mod_params->sw_crypto;if (!rtlpriv->psc.inactiveps)pr_info ("rtl8192ce: Power Save off (module option)\n" );if (!rtlpriv->psc.fwctrl_lps)
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +2 -0
@@ -62,6 +62,8 @@ static int rtl92cu_init_sw_vars(struct ieee80211_hw *hw) rtlpriv->dm.disable_framebursting =0 ; rtlpriv->dm.thermalvalue =0 ; rtlpriv->dbg.global_debuglevel = rtlpriv->cfg->mod_params->debug; + rtlpriv->cfg->mod_params->sw_crypto = + rtlpriv->cfg->mod_params->sw_crypto; rtlpriv->rtlhal.pfirmware =vmalloc (0x4000 );if (!rtlpriv->rtlhal.pfirmware) { RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG,
drivers/net/wireless/rtlwifi/rtl8192de/sw.c +2 -2
@@ -387,8 +387,8 @@ module_param_named(swlps, rtl92de_mod_params.swctrl_lps, bool, 0444);module_param_named (fwlps, rtl92de_mod_params.fwctrl_lps, bool,0444 );MODULE_PARM_DESC (swenc,"Set to 1 for software crypto (default 0)\n" );MODULE_PARM_DESC (ips,"Set to 0 to not use link power save (default 1)\n" ); -MODULE_PARM_DESC (swlps,"Set to 1 to use SW control power save (default 0)\n" ); -MODULE_PARM_DESC (fwlps,"Set to 1 to use FW control power save (default 1)\n" ); +MODULE_PARM_DESC (swlps,"Set to 1 to use SW control power save (default 1)\n" ); +MODULE_PARM_DESC (fwlps,"Set to 1 to use FW control power save (default 0)\n" );MODULE_PARM_DESC (debug,"Set debug level (0-5) (default 0)" );static const struct dev_pm_ops rtlwifi_pm_ops = {
drivers/net/wireless/rtlwifi/rtl8192se/sw.c +4 -2
@@ -167,6 +167,8 @@ static int rtl92s_init_sw_vars(struct ieee80211_hw *hw) rtlpriv->psc.inactiveps = rtlpriv->cfg->mod_params->inactiveps; rtlpriv->psc.swctrl_lps = rtlpriv->cfg->mod_params->swctrl_lps; rtlpriv->psc.fwctrl_lps = rtlpriv->cfg->mod_params->fwctrl_lps; + rtlpriv->cfg->mod_params->sw_crypto = + rtlpriv->cfg->mod_params->sw_crypto;if (!rtlpriv->psc.inactiveps)pr_info ("rtl8192ce: Power Save off (module option)\n" );if (!rtlpriv->psc.fwctrl_lps)
@@ -399,8 +401,8 @@ module_param_named(swlps, rtl92se_mod_params.swctrl_lps, bool, 0444);module_param_named (fwlps, rtl92se_mod_params.fwctrl_lps, bool,0444 );MODULE_PARM_DESC (swenc,"Set to 1 for software crypto (default 0)\n" );MODULE_PARM_DESC (ips,"Set to 0 to not use link power save (default 1)\n" ); -MODULE_PARM_DESC (swlps,"Set to 1 to use SW control power save (default 0)\n" ); -MODULE_PARM_DESC (fwlps,"Set to 1 to use FW control power save (default 1)\n" ); +MODULE_PARM_DESC (swlps,"Set to 1 to use SW control power save (default 1)\n" ); +MODULE_PARM_DESC (fwlps,"Set to 1 to use FW control power save (default 0)\n" );MODULE_PARM_DESC (debug,"Set debug level (0-5) (default 0)" );static const struct dev_pm_ops rtlwifi_pm_ops = {
drivers/net/wireless/rtlwifi/usb.c +2 -0
@@ -500,6 +500,8 @@ static void _rtl_usb_rx_process_noagg(struct ieee80211_hw *hw, }else {dev_kfree_skb_any (skb); } + }else { +dev_kfree_skb_any (skb); } }
drivers/net/wireless/wl12xx/spi.c +6 -2
@@ -67,7 +67,10 @@/* HW limitation: maximum possible chunk size is 4095 bytes */ #define WSPI_MAX_CHUNK_SIZE 4092 -#define WSPI_MAX_NUM_OF_CHUNKS (WL1271_AGGR_BUFFER_SIZE / WSPI_MAX_CHUNK_SIZE) +/* Maximum number of SPI write chunks */ +#define WSPI_MAX_NUM_OF_CHUNKS \ + ((WL1271_AGGR_BUFFER_SIZE / WSPI_MAX_CHUNK_SIZE) + 1) +static inline struct spi_device *wl_to_spi (struct wl1271 *wl) {
@@ -274,9 +277,10 @@ static void wl1271_spi_raw_read(struct wl1271 *wl, int addr, void *buf,static void wl1271_spi_raw_write (struct wl1271 *wl,int addr,void *buf,size_t len,bool fixed) { +/* SPI write buffers - 2 for each chunk */ struct spi_transfer t[2 *WSPI_MAX_NUM_OF_CHUNKS ];struct spi_message m; -u32 commands[WSPI_MAX_NUM_OF_CHUNKS ]; +u32 commands[WSPI_MAX_NUM_OF_CHUNKS ];/* 1 command per chunk */ u32 *cmd;u32 chunk_len;int i;
drivers/power/test_power.c +2 -0
@@ -237,6 +237,8 @@ static int map_get_value(struct battery_property_map *map, const char *key, buf[MAX_KEYLENGTH -1 ] ='\0' ; cr =strnlen (buf,MAX_KEYLENGTH ) -1 ; +if (cr <0 ) +return def_val;if (buf[cr] =='\n' ) buf[cr] ='\0' ;
drivers/scsi/initio.c +0 -16
@@ -110,11 +110,6 @@#define i91u_MAXQUEUE 2#define i91u_REVID "Initio INI-9X00U/UW SCSI device driver; Revision: 1.04a" -#define I950_DEVICE_ID 0x9500/* Initio's inic-950 product ID */ -#define I940_DEVICE_ID 0x9400/* Initio's inic-940 product ID */ -#define I935_DEVICE_ID 0x9401/* Initio's inic-935 product ID */ -#define I920_DEVICE_ID 0x0002/* Initio's other product ID */ -#ifdef DEBUG_i91ustatic unsigned int i91u_debug =DEBUG_DEFAULT ;#endif
@@ -127,17 +122,6 @@ static int setup_debug = 0;static void i91uSCBPost (u8 * pHcb,u8 * pScb); -/* PCI Devices supported by this driver */ -static struct pci_device_id i91u_pci_devices[] = { - {PCI_VENDOR_ID_INIT ,I950_DEVICE_ID ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,0 }, - {PCI_VENDOR_ID_INIT ,I940_DEVICE_ID ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,0 }, - {PCI_VENDOR_ID_INIT ,I935_DEVICE_ID ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,0 }, - {PCI_VENDOR_ID_INIT ,I920_DEVICE_ID ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,0 }, - {PCI_VENDOR_ID_DOMEX ,I920_DEVICE_ID ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,0 }, - { } -}; -MODULE_DEVICE_TABLE (pci, i91u_pci_devices); -#define DEBUG_INTERRUPT 0#define DEBUG_QUEUE 0#define DEBUG_STATE 0
drivers/usb/host/xhci.c +3 -0
@@ -4300,6 +4300,9 @@ static int __init xhci_hcd_init(void) {int retval; +if (usb_disabled ()) +return -ENODEV ; + retval =xhci_register_pci ();if (retval <0 ) {printk (KERN_DEBUG "Problem registering PCI driver." );
drivers/usb/serial/cp210x.c +1 -0
@@ -166,6 +166,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x17F4, 0xAAAA) }, /* Wavesense Jazz blood glucose meter */ { USB_DEVICE(0x1843, 0x0200) }, /* Vaisala USB Instrument Cable */ { USB_DEVICE(0x18EF, 0xE00F) }, /* ELV USB-I2C-Interface */ + { USB_DEVICE(0x18EF, 0xE025) }, /* ELV Marble Sound Board 1 */ { USB_DEVICE(0x1ADB, 0x0001) }, /* Schweitzer Engineering C662 Cable */ { USB_DEVICE(0x1B1C, 0x1C00) }, /* Corsair USB Dongle */ { USB_DEVICE(0x1BA4, 0x0002) }, /* Silicon Labs 358x factory default */
fs/cifs/cifs_debug.h +5 -3
@@ -23,6 +23,8 @@#ifndef _H_CIFS_DEBUG#define _H_CIFS_DEBUG +#include <linux/ratelimit.h> +void cifs_dump_mem (char *label,void *data,int length);#ifdef CONFIG_CIFS_DEBUG2 #define DBG2 2
@@ -48,7 +50,7 @@ extern int cifsFYI; #define cifsfyi(fmt, arg...) \ do { \ if (cifsFYI & CIFS_INFO) \ - printk(KERN_DEBUG "%s: " fmt "\n", __FILE__, ##arg); \ + pr_debug_ratelimited("%s: " fmt "\n", __FILE__, ##arg); \ } while (0) #define cFYI(set, fmt, arg...) \
@@ -58,7 +60,7 @@ do { \ } while (0) #define cifswarn(fmt, arg...) \ - printk(KERN_WARNING fmt "\n", ##arg) + pr_warn_ratelimited(fmt "\n", ##arg)/* debug event message: */ extern int cifsERROR;
@@ -73,7 +75,7 @@ do { \ #define cifserror(fmt, arg...) \ do { \ if (cifsERROR) \ - printk(KERN_ERR "CIFS VFS: " fmt "\n", ##arg); \ + pr_err_ratelimited("CIFS VFS: " fmt "\n", ##arg); \ } while (0) #define cERROR(set, fmt, arg...) \
fs/cifs/connect.c +1 -1
@@ -134,7 +134,6 @@ cifs_reconnect(struct TCP_Server_Info *server) server->session_key.response =NULL ; server->session_key.len =0 ; server->lstrp = jiffies; -mutex_unlock (&server->srv_mutex);/* mark submitted MIDs for retry and issue callback */ INIT_LIST_HEAD (&retry_list);
@@ -147,6 +146,7 @@ cifs_reconnect(struct TCP_Server_Info *server)list_move (&mid_entry->qhead, &retry_list); }spin_unlock (&GlobalMid_Lock); +mutex_unlock (&server->srv_mutex);cFYI (1 ,"%s: issuing mid callbacks" , __func__);list_for_each_safe (tmp, tmp2, &retry_list) {
fs/cifs/readdir.c +1 -0
@@ -823,6 +823,7 @@ int cifs_readdir(struct file *file, void *direntry, filldir_t filldir) }/* if buggy server returns . and .. late do we want to check for that here? */ + *tmp_buf =0 ; rc =cifs_filldir (current_entry, file, filldir, direntry, tmp_buf, max_len);if (rc == -EOVERFLOW ) {
fs/cifs/transport.c +8 -9
@@ -370,10 +370,8 @@ cifs_call_async(struct TCP_Server_Info *server, struct kvec *iov,spin_unlock (&GlobalMid_Lock); rc =cifs_sign_smb2 (iov, nvec, server, &mid->sequence_number); -if (rc) { -mutex_unlock (&server->srv_mutex); - goto out_err; - } +if (rc) + goto out; mid->receive = receive; mid->callback = callback;
@@ -384,14 +382,15 @@ cifs_call_async(struct TCP_Server_Info *server, struct kvec *iov, rc =smb_sendv (server, iov, nvec);cifs_in_send_dec (server);cifs_save_when_sent (mid); +out: +if (rc <0 ) +delete_mid (mid); +mutex_unlock (&server->srv_mutex); -if (rc) - goto out_err; +if (rc ==0 ) +return 0 ; -return rc; -out_err: -delete_mid (mid);atomic_dec (&server->inFlight);wake_up (&server->request_q);return rc;
fs/hostfs/hostfs_kern.c +1 -3
@@ -720,15 +720,13 @@ int hostfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t dev)init_special_inode (inode, mode, dev); err =do_mknod (name, mode,MAJOR (dev),MINOR (dev)); -if (!err) +if (err) goto out_free; err =read_name (inode, name);__putname (name);if (err) goto out_put; -if (err) - goto out_put;d_instantiate (dentry, inode);return 0 ;
fs/locks.c +30 -21
77 lines not on this page · raw message
fs/nfs/inode.c +39 -15
158 lines not on this page · raw message
fs/ocfs2/dlm/dlmmaster.c +15 -11
@@ -2459,6 +2459,11 @@ static int dlm_migrate_lockres(struct dlm_ctxt *dlm,spin_lock (&dlm->master_lock); ret =dlm_add_migration_mle (dlm, res, mle, &oldmle, name, namelen, target, dlm->node_num); +/* get an extra reference on the mle. +* otherwise the assert_master from the new +* master will destroy this. +*/ +dlm_get_mle_inuse (mle);spin_unlock (&dlm->master_lock);spin_unlock (&dlm->spinlock);
@@ -2494,6 +2499,7 @@ fail:if (mle_added) {dlm_mle_detach_hb_events (dlm, mle);dlm_put_mle (mle); +dlm_put_mle_inuse (mle); }else if (mle) {kmem_cache_free (dlm_mle_cache, mle); mle =NULL ;
@@ -2511,17 +2517,6 @@ fail:* ensure that all assert_master work is flushed. */ flush_workqueue (dlm->dlm_worker); -/* get an extra reference on the mle. -* otherwise the assert_master from the new -* master will destroy this. -* also, make sure that all callers of dlm_get_mle -* take both dlm->spinlock and dlm->master_lock */ -spin_lock (&dlm->spinlock); -spin_lock (&dlm->master_lock); -dlm_get_mle_inuse (mle); -spin_unlock (&dlm->master_lock); -spin_unlock (&dlm->spinlock); -/* notify new node and send all lock state */ /* call send_one_lockres with migration flag. * this serves as notice to the target node that a
@@ -3249,6 +3244,15 @@ top: mle->new_master != dead_node)continue ; +if (mle->new_master == dead_node && mle->inuse) { +mlog (ML_NOTICE ,"%s: target %u died during " +"migration from %u, the MLE is " +"still keep used, ignore it!\n" , + dlm->name, dead_node, + mle->master); +continue ; + } +/* If we have reached this point, this mle needs to be * removed from the list and freed. */ dlm_clean_migration_mle (dlm, mle);
fs/ocfs2/dlmglue.c +6 -0
@@ -1373,6 +1373,7 @@ static int __ocfs2_cluster_lock(struct ocfs2_super *osb,unsigned long flags;unsigned int gen;int noqueue_attempted =0 ; +int kick_dc =0 ;ocfs2_init_mask_waiter (&mw);
@@ -1501,7 +1502,12 @@ update_holders: unlock:lockres_clear_flags (lockres,OCFS2_LOCK_UPCONVERT_FINISHING ); +/* ocfs2_unblock_lock reques on seeing OCFS2_LOCK_UPCONVERT_FINISHING */ + kick_dc = (lockres->l_flags &OCFS2_LOCK_BLOCKED ); +spin_unlock_irqrestore (&lockres->l_lock, flags); +if (kick_dc) +ocfs2_wake_downconvert_thread (osb); out:/* * This is helping work around a lock inversion between the page lock
fs/udf/inode.c +15 -0
@@ -1975,14 +1975,29 @@ void udf_write_aext(struct inode *inode, struct extent_position *epos, epos->offset += adsize; } +/* +* Only 1 indirect extent in a row really makes sense but allow upto 16 in case +* someone does some weird stuff. +*/ +#define UDF_MAX_INDIR_EXTS 16 +int8_t udf_next_aext (struct inode *inode,struct extent_position *epos,struct kernel_lb_addr *eloc,uint32_t *elen,int inc) {int8_t etype; +unsigned int indirections =0 ;while ((etype =udf_current_aext (inode, epos, eloc, elen, inc)) == (EXT_NEXT_EXTENT_ALLOCDECS >>30 )) {int block; + +if (++indirections >UDF_MAX_INDIR_EXTS ) { +udf_err (inode->i_sb, +"too many indirect extents in inode %lu\n" , + inode->i_ino); +return -1 ; + } + epos->block = *eloc; epos->offset =sizeof (struct allocExtDesc );brelse (epos->bh);
fs/udf/unicode.c +18 -3
@@ -133,11 +133,15 @@ int udf_CS0toUTF8(struct ustr *utf_o, const struct ustr *ocu_i)if (c <0x80U ) utf_o->u_name[utf_o->u_len++] = (uint8_t )c;else if (c <0x800U ) { +if (utf_o->u_len > (UDF_NAME_LEN -4 )) +break ; utf_o->u_name[utf_o->u_len++] = (uint8_t )(0xc0 | (c >>6 )); utf_o->u_name[utf_o->u_len++] = (uint8_t )(0x80 | (c &0x3f )); }else { +if (utf_o->u_len > (UDF_NAME_LEN -5 )) +break ; utf_o->u_name[utf_o->u_len++] = (uint8_t )(0xe0 | (c >>12 )); utf_o->u_name[utf_o->u_len++] =
@@ -178,17 +182,22 @@ int udf_CS0toUTF8(struct ustr *utf_o, const struct ustr *ocu_i)static int udf_UTF8toCS0 (dstring *ocu,struct ustr *utf,int length) {unsigned c, i, max_val, utf_char; -int utf_cnt, u_len; +int utf_cnt, u_len, u_ch;memset (ocu,0 ,sizeof (dstring) * length); ocu[0 ] =8 ; max_val =0xffU ; + u_ch =1 ; try_again: u_len =0U ; utf_char =0U ; utf_cnt =0U ;for (i =0U ; i < utf->u_len; i++) { +/* Name didn't fit? */ +if (u_len +1 + u_ch >= length) +return 0 ; + c = (uint8_t )utf->u_name[i];/* Complete a multi-byte UTF-8 character */
@@ -230,6 +239,7 @@ try_again:if (max_val ==0xffU ) { max_val =0xffffU ; ocu[0 ] = (uint8_t )0x10U ; + u_ch =2 ; goto try_again; } goto error_out;
@@ -282,7 +292,7 @@ static int udf_CS0toNLS(struct nls_table *nls, struct ustr *utf_o, c = (c <<8 ) | ocu[i++]; len = nls->uni2char (c, &utf_o->u_name[utf_o->u_len], -UDF_NAME_LEN - utf_o->u_len); +UDF_NAME_LEN -2 - utf_o->u_len);/* Valid character? */ if (len >=0 ) utf_o->u_len += len;
@@ -300,15 +310,19 @@ static int udf_NLStoCS0(struct nls_table *nls, dstring *ocu, struct ustr *uni,int len;unsigned i, max_val;uint16_t uni_char; -int u_len; +int u_len, u_ch;memset (ocu,0 ,sizeof (dstring) * length); ocu[0 ] =8 ; max_val =0xffU ; + u_ch =1 ; try_again: u_len =0U ;for (i =0U ; i < uni->u_len; i++) { +/* Name didn't fit? */ +if (u_len +1 + u_ch >= length) +return 0 ; len = nls->char2uni (&uni->u_name[i], uni->u_len - i, &uni_char);if (!len)continue ;
@@ -321,6 +335,7 @@ try_again:if (uni_char > max_val) { max_val =0xffffU ; ocu[0 ] = (uint8_t )0x10U ; + u_ch =2 ; goto try_again; }
include/crypto/hash.h +6 -0
@@ -94,6 +94,7 @@ struct crypto_ahash { unsigned int keylen);unsigned int reqsize; +bool has_setkey;struct crypto_tfm base; };
@@ -181,6 +182,11 @@ static inline void *ahash_request_ctx(struct ahash_request *req)int crypto_ahash_setkey (struct crypto_ahash *tfm,const u8 *key,unsigned int keylen); +static inline bool crypto_ahash_has_setkey (struct crypto_ahash *tfm) +{ +return tfm->has_setkey; +} +int crypto_ahash_finup (struct ahash_request *req);int crypto_ahash_final (struct ahash_request *req);int crypto_ahash_digest (struct ahash_request *req);
include/crypto/if_alg.h +6 -5
@@ -30,6 +30,9 @@ struct alg_sock {struct sock *parent; +unsigned int refcnt; +unsigned int nokey_refcnt; +const struct af_alg_type *type;void *private; };
@@ -49,8 +52,10 @@ struct af_alg_type {void (*release)(void *private);int (*setkey)(void *private,const u8 *key,unsigned int keylen);int (*accept)(void *private,struct sock *sk); +int (*accept_nokey)(void *private,struct sock *sk);struct proto_ops *ops; +struct proto_ops *ops_nokey;struct module *owner;char name[14 ]; };
@@ -64,6 +69,7 @@ int af_alg_register_type(const struct af_alg_type *type);int af_alg_unregister_type (const struct af_alg_type *type);int af_alg_release (struct socket *sock); +void af_alg_release_parent (struct sock *sk);int af_alg_accept (struct sock *sk,struct socket *newsock); int af_alg_make_sg(struct af_alg_sgl *sgl, void __user *addr, int len,
@@ -80,11 +86,6 @@ static inline struct alg_sock *alg_sk(struct sock *sk)return (struct alg_sock *)sk; } -static inline void af_alg_release_parent (struct sock *sk) -{ -sock_put (alg_sk (sk)->parent); -} -static inline void af_alg_init_completion (struct af_alg_completion *completion) {init_completion (&completion->completion);
include/linux/crypto.h +8 -0
@@ -346,6 +346,7 @@ struct ablkcipher_tfm {unsigned int ivsize;unsigned int reqsize; +bool has_setkey; };struct aead_tfm {
@@ -656,6 +657,13 @@ static inline int crypto_ablkcipher_setkey(struct crypto_ablkcipher *tfm,return crt->setkey (crt->base, key, keylen); } +static inline bool crypto_ablkcipher_has_setkey (struct crypto_ablkcipher *tfm) +{ +struct ablkcipher_tfm *crt =crypto_ablkcipher_crt (tfm); + +return crt->has_setkey; +} +static inline struct crypto_ablkcipher *crypto_ablkcipher_reqtfm (struct ablkcipher_request *req) {
include/linux/mtd/nand.h +2 -2
@@ -283,7 +283,7 @@ struct nand_onfi_params {__le16 t_r;__le16 t_ccs;__le16 src_sync_timing_mode; -__le16 src_ssync_features; +u8 src_ssync_features;__le16 clk_pin_capacitance_typ;__le16 io_pin_capacitance_typ;__le16 input_pin_capacitance_typ;
@@ -291,7 +291,7 @@ struct nand_onfi_params {u8 driver_strenght_support;__le16 t_int_r;__le16 t_ald; -u8 reserved4[7 ]; +u8 reserved4[8 ];/* vendor */ u8 reserved5[90 ];
include/linux/printk.h +6 -6
@@ -80,13 +80,13 @@ struct va_format {/* * Dummy printk for disabled debugging statements to use whilst maintaining -* gcc's format and side-effect checking. +* gcc's format checking. */ -static inline __printf(1, 2) -int no_printk(const char *fmt, ...) -{ -return 0 ; -} +#define no_printk (fmt, ...) \ +do { \ + if (0) \ + printk(fmt, ##__VA_ARGS__); \ +} while (0) extern asmlinkage __printf(1, 2) void early_printk(const char *fmt, ...);
kernel/futex.c +5 -0
@@ -2492,6 +2492,11 @@ static int futex_wait_requeue_pi(u32 __user *uaddr, unsigned int flags,if (q.pi_state && (q.pi_state->owner != current)) {spin_lock (q.lock_ptr); ret =fixup_pi_state_owner (uaddr2, &q, current); +/* +* Drop the reference to the pi state which +* the requeue_pi() code acquired for us. +*/ +free_pi_state (q.pi_state);spin_unlock (q.lock_ptr); } }else {
kernel/time/posix-clock.c +2 -2
@@ -69,10 +69,10 @@ static ssize_t posix_clock_read(struct file *fp, char __user *buf,static unsigned int posix_clock_poll (struct file *fp,poll_table *wait) {struct posix_clock *clk =get_posix_clock (fp); -int result =0 ; +unsigned int result =0 ;if (!clk) -return -ENODEV ; +return POLLERR ;if (clk->ops.poll) result = clk->ops.poll (clk, fp, wait);
lib/dma-debug.c +1 -1
@@ -942,7 +942,7 @@ static inline bool overlap(void *addr, unsigned long len, void *start, void *endstatic void check_for_illegal_area (struct device *dev,void *addr,unsigned long len) { -if (overlap (addr, len, _text, _etext) || +if (overlap (addr, len, _stext, _etext) ||overlap (addr, len, __start_rodata, __end_rodata))err_printk (dev,NULL ,"DMA-API: device driver maps memory from kernel text or rodata [addr=%p] [len=%lu]\n" , addr, len); }
mm/memcontrol.c +6 -5
@@ -4564,16 +4564,17 @@ 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 */ synchronize_rcu (); + +/* If all events are unregistered, free the spare array */ +if (!new) { +kfree (thresholds->spare); + thresholds->spare =NULL ; + } unlock:mutex_unlock (&memcg->thresholds_lock); }
net/ipv6/tcp_ipv6.c +2 -0
@@ -513,8 +513,10 @@ static int tcp_v6_send_synack(struct sock *sk, struct request_sock *req,__tcp_v6_send_check (skb, &treq->loc_addr, &treq->rmt_addr);ipv6_addr_copy (&fl6.daddr, &treq->rmt_addr); +rcu_read_lock (); err =ip6_xmit (sk, skb, &fl6,rcu_dereference (np->opt), np->tclass); +rcu_read_unlock (); err =net_xmit_eval (err); }
net/sctp/sm_sideeffect.c +19 -15
@@ -249,11 +249,12 @@ void sctp_generate_t3_rtx_event(unsigned long peer)int error;struct sctp_transport *transport = (struct sctp_transport *) peer;struct sctp_association *asoc = transport->asoc; +struct sock *sk = asoc->base.sk;/* Check whether a task is in the sock. */ -sctp_bh_lock_sock (asoc->base.sk); -if (sock_owned_by_user (asoc->base.sk)) { +sctp_bh_lock_sock (sk); +if (sock_owned_by_user (sk)) {SCTP_DEBUG_PRINTK ("%s:Sock is busy.\n" , __func__);/* Try again later. */
@@ -276,10 +277,10 @@ void sctp_generate_t3_rtx_event(unsigned long peer) transport, GFP_ATOMIC);if (error) - asoc->base.sk->sk_err = -error; + sk->sk_err = -error; out_unlock: -sctp_bh_unlock_sock (asoc->base.sk); +sctp_bh_unlock_sock (sk);sctp_transport_put (transport); }
@@ -289,10 +290,11 @@ out_unlock:static void sctp_generate_timeout_event (struct sctp_association *asoc,sctp_event_timeout_t timeout_type) { +struct sock *sk = asoc->base.sk;int error =0 ; -sctp_bh_lock_sock (asoc->base.sk); -if (sock_owned_by_user (asoc->base.sk)) { +sctp_bh_lock_sock (sk); +if (sock_owned_by_user (sk)) {SCTP_DEBUG_PRINTK ("%s:Sock is busy: timer %d\n" , __func__, timeout_type);
@@ -316,10 +318,10 @@ static void sctp_generate_timeout_event(struct sctp_association *asoc, (void *)timeout_type, GFP_ATOMIC);if (error) - asoc->base.sk->sk_err = -error; + sk->sk_err = -error; out_unlock: -sctp_bh_unlock_sock (asoc->base.sk); +sctp_bh_unlock_sock (sk);sctp_association_put (asoc); }
@@ -369,9 +371,10 @@ void sctp_generate_heartbeat_event(unsigned long data)int error =0 ;struct sctp_transport *transport = (struct sctp_transport *) data;struct sctp_association *asoc = transport->asoc; +struct sock *sk = asoc->base.sk; -sctp_bh_lock_sock (asoc->base.sk); -if (sock_owned_by_user (asoc->base.sk)) { +sctp_bh_lock_sock (sk); +if (sock_owned_by_user (sk)) {SCTP_DEBUG_PRINTK ("%s:Sock is busy.\n" , __func__);/* Try again later. */
@@ -392,10 +395,10 @@ void sctp_generate_heartbeat_event(unsigned long data) transport, GFP_ATOMIC);if (error) - asoc->base.sk->sk_err = -error; + sk->sk_err = -error; out_unlock: -sctp_bh_unlock_sock (asoc->base.sk); +sctp_bh_unlock_sock (sk);sctp_transport_put (transport); }
@@ -406,9 +409,10 @@ void sctp_generate_proto_unreach_event(unsigned long data) {struct sctp_transport *transport = (struct sctp_transport *) data;struct sctp_association *asoc = transport->asoc; +struct sock *sk = asoc->base.sk; -sctp_bh_lock_sock (asoc->base.sk); -if (sock_owned_by_user (asoc->base.sk)) { +sctp_bh_lock_sock (sk); +if (sock_owned_by_user (sk)) {SCTP_DEBUG_PRINTK ("%s:Sock is busy.\n" , __func__);/* Try again later. */
@@ -429,7 +433,7 @@ void sctp_generate_proto_unreach_event(unsigned long data) asoc->state, asoc->ep, asoc, transport, GFP_ATOMIC); out_unlock: -sctp_bh_unlock_sock (asoc->base.sk); +sctp_bh_unlock_sock (sk);sctp_association_put (asoc); }
scripts/bloat-o-meter +4 -4
@@ -55,8 +55,8 @@ for name in common: delta.sort() delta.reverse() -print "add/remove: %s/%s grow/shrink: %s/%s up/down: %s/%s (%s)" % \ - (add, remove, grow, shrink, up, -down, up-down) -print "%-40s %7s %7s %+7s" % ("function", "old", "new", "delta") +print("add/remove: %s/%s grow/shrink: %s/%s up/down: %s/%s (%s)" % \ + (add, remove, grow, shrink, up, -down, up-down)) +print("%-40s %7s %7s %+7s" % ("function", "old", "new", "delta")) for d, n in delta: - if d: print "%-40s %7s %7s %+7d" % (n, old.get(n,"-"), new.get(n,"-"), d) + if d: print("%-40s %7s %7s %+7d" % (n, old.get(n,"-"), new.get(n,"-"), d))
sound/core/control.c +2 -0
@@ -1321,6 +1321,8 @@ static int snd_ctl_tlv_ioctl(struct snd_ctl_file *file,return -EFAULT ;if (tlv.length <sizeof (unsigned int ) *2 )return -EINVAL ; +if (!tlv.numid) +return -EINVAL ;down_read (&card->controls_rwsem); kctl =snd_ctl_find_numid (card, tlv.numid);if (kctl ==NULL ) {
sound/core/hrtimer.c +2 -1
@@ -90,7 +90,7 @@ static int snd_hrtimer_start(struct snd_timer *t)struct snd_hrtimer *stime = t->private_data;atomic_set (&stime->running,0 ); -hrtimer_cancel (&stime->hrt); +hrtimer_try_to_cancel (&stime->hrt);hrtimer_start (&stime->hrt,ns_to_ktime (t->sticks * resolution),HRTIMER_MODE_REL );atomic_set (&stime->running,1 );
@@ -101,6 +101,7 @@ static int snd_hrtimer_stop(struct snd_timer *t) {struct snd_hrtimer *stime = t->private_data;atomic_set (&stime->running,0 ); +hrtimer_try_to_cancel (&stime->hrt);return 0 ; }
sound/core/pcm_compat.c +9 -4
@@ -235,10 +235,15 @@ static int snd_pcm_ioctl_hw_params_compat(struct snd_pcm_substream *substream,if (! (runtime = substream->runtime))return -ENOTTY ; -/* only fifo_size is different, so just copy all */ - data =memdup_user (data32,sizeof (*data32)); -if (IS_ERR (data)) -return PTR_ERR (data); + data =kmalloc (sizeof (*data),GFP_KERNEL ); +if (!data) +return -ENOMEM ; + +/* only fifo_size (RO from userspace) is different, so just copy all */ +if (copy_from_user (data, data32,sizeof (*data32))) { + err = -EFAULT ; + goto error; + }if (refine) err =snd_pcm_hw_refine (substream, data);
sound/core/seq/seq_clientmgr.c +1 -1
@@ -1950,7 +1950,7 @@ static int snd_seq_ioctl_remove_events(struct snd_seq_client *client,* No restrictions so for a user client we can clear * the whole fifo */ -if (client->type ==USER_CLIENT ) +if (client->type ==USER_CLIENT && client->data.user.fifo)snd_seq_fifo_clear (client->data.user.fifo); }
sound/core/seq/seq_compat.c +5 -4
@@ -49,11 +49,12 @@ static int snd_seq_call_port_info_ioctl(struct snd_seq_client *client, unsignedstruct snd_seq_port_info *data;mm_segment_t fs; - data =memdup_user (data32,sizeof (*data32)); -if (IS_ERR (data)) -return PTR_ERR (data); + data =kmalloc (sizeof (*data),GFP_KERNEL ); +if (!data) +return -ENOMEM ; -if (get_user (data->flags, &data32->flags) || +if (copy_from_user (data, data32,sizeof (*data32)) || +get_user (data->flags, &data32->flags) ||get_user (data->time_queue, &data32->time_queue)) goto error; data->kernel =NULL ;
sound/core/seq/seq_queue.c +2 -0
@@ -144,8 +144,10 @@ static struct snd_seq_queue *queue_new(int owner, int locked)static void queue_delete (struct snd_seq_queue *q) {/* stop and release the timer */ +mutex_lock (&q->timer_mutex);snd_seq_timer_stop (q->timer);snd_seq_timer_close (q); +mutex_unlock (&q->timer_mutex);/* wait until access free */ snd_use_lock_sync (&q->use_lock);/* release resources... */
sound/core/timer.c +34 -18
148 lines not on this page · raw message
sound/pci/fm801.c +4 -0
@@ -1244,6 +1244,8 @@ static int __devinit snd_fm801_create(struct snd_card *card,return -ENODEV ; } }else if ((tea575x_tuner &TUNER_TYPE_MASK ) ==0 ) { +unsigned int tuner_only = tea575x_tuner &TUNER_ONLY ; +/* autodetect tuner connection */ for (tea575x_tuner =1 ; tea575x_tuner <=3 ; tea575x_tuner++) { chip->tea575x_tuner = tea575x_tuner;
@@ -1257,6 +1259,8 @@ static int __devinit snd_fm801_create(struct snd_card *card,snd_printk (KERN_ERR "TEA575x radio not found\n" ); chip->tea575x_tuner =TUNER_DISABLED ; } + + chip->tea575x_tuner |= tuner_only; }if (!(chip->tea575x_tuner &TUNER_DISABLED )) { strlcpy(chip->tea.card, get_tea575x_gpio(chip)->name,