Linux 3.8.8
Greg KH
maintainerI'm announcing the release of the 3.8.8 kernel.
All users of the 3.8 kernel series must upgrade.
The updated 3.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.8.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
------------
Makefile | 2 arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts | 14 arch/arm/mach-imx/clk-imx35.c | 1 arch/x86/include/asm/paravirt.h | 5 arch/x86/include/asm/paravirt_types.h | 2 arch/x86/include/asm/tlb.h | 2 arch/x86/kernel/paravirt.c | 25 - arch/x86/lguest/boot.c | 1 arch/x86/mm/fault.c | 6 arch/x86/mm/pgtable.c | 7 arch/x86/xen/mmu.c | 1 drivers/dma/omap-dma.c | 20 drivers/gpio/gpiolib-of.c | 5 drivers/gpu/drm/udl/udl_connector.c | 4 drivers/net/wireless/brcm80211/brcmsmac/phy/phy_lcn.c | 369 +++++---------- drivers/net/wireless/brcm80211/brcmsmac/phy/phytbl_lcn.c | 64 +- drivers/scsi/libsas/sas_expander.c | 12 drivers/target/target_core_alua.c | 3 drivers/tty/tty_ldisc.c | 10 fs/cifs/connect.c | 16 fs/gfs2/file.c | 5 fs/gfs2/rgrp.c | 2 fs/inode.c | 2 include/asm-generic/tlb.h | 7 include/linux/ftrace.h | 3 ipc/msg.c | 1 kernel/sched/clock.c | 26 + kernel/sys.c | 3 kernel/trace/ftrace.c | 37 - kernel/trace/trace_stack.c | 2 lib/kobject.c | 9 mm/memory.c | 1 sound/soc/codecs/wm5102.c | 2 sound/soc/codecs/wm8903.c | 2 sound/soc/soc-core.c | 2 sound/usb/mixer_quirks.c | 4 sound/usb/quirks.c | 2 37 files changed, 335 insertions(+), 344 deletions(-)
Alban Bedel (1):
ASoC: wm8903: Fix the bypass to HP/LINEOUT when no DAC or ADC is running
Boris Ostrovsky (1):
x86, mm: Patch out arch_flush_lazy_mmu_mode() when running on bare metal
Dave Airlie (1):
udl: handle EDID failure properly.
Dave Hansen (1):
x86-32: Fix possible incomplete TLB invalidate with PAE pagetables
Eldad Zack (1):
ALSA: usb-audio: fix endianness bug in snd_nativeinstruments_*
Greg Kroah-Hartman (1):
Linux 3.8.8
Haojian Zhuang (1):
gpio: fix wrong checking condition for gpio range
Huacai Chen (1):
PM / reboot: call syscore_shutdown() after disable_nonboot_cpus()
John W. Linville (1):
Revert "brcmsmac: support 4313iPA"
Joonyoung Shim (1):
ASoC: core: Fix to check return value of snd_soc_update_bits_locked()
Linus Torvalds (1):
kobject: fix kset_find_obj() race with concurrent last kobject_put()
Lukasz Dorau (1):
SCSI: libsas: fix handling vacant phy in sas_set_ex_phy()
Mark Brown (1):
ASoC: wm5102: Correct lookup of arizona struct in SYSCLK event
Markus Pargmann (1):
ARM: imx35 Bugfix admux clock
Namhyung Kim (2):
tracing: Fix double free when function profile init failed
tracing: Fix possible NULL pointer dereferences
Nicholas Bellinger (1):
target: Fix incorrect fallthrough of ALUA Standby/Offline/Transition CDBs
Nigel Roberts (1):
ARM: Kirkwood: Fix typo in the definition of ix2-200 rebuild LED
Peter Ujfalusi (1):
dmaengine: omap-dma: Start DMA without delay for cyclic channels
Sachin Prabhu (1):
cifs: Allow passwords which begin with a delimitor
Samu Kallio (1):
x86, mm, paravirt: Fix vmalloc_fault oops during lazy MMU updates
Sebastian Andrzej Siewior (1):
tty: don't deadlock while flushing workqueue
Stanislav Kinsbursky (1):
ipc: set msg back to -EAGAIN if copy wasn't performed
Steven Rostedt (Red Hat) (1):
ftrace: Move ftrace_filter_lseek out of CONFIG_DYNAMIC_FTRACE section
Steven Whitehouse (1):
GFS2: Fix unlock of fcntl locks during withdrawn state
Suleiman Souhlal (1):
vfs: Revert spurious fix to spinning prevention in prune_icache_sb
Thomas Gleixner (1):
sched_clock: Prevent 64bit inatomicity on 32bit systems
Wei Yongjun (1):
GFS2: return error if malloc failed in gfs2_rs_alloc()
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 8 -SUBLEVEL = 7 +SUBLEVEL = 8 EXTRAVERSION = NAME = Displaced Humerus Anterior
arch/arm/boot/dts/kirkwood-iomega_ix2_200.dts +7 -7
@@ -96,11 +96,11 @@ marvell,function = "gpio"; }; pmx_led_rebuild_brt_ctrl_1: pmx-led-rebuild-brt-ctrl-1 { - marvell,pins = "mpp44"; + marvell,pins = "mpp46"; marvell,function = "gpio"; }; pmx_led_rebuild_brt_ctrl_2: pmx-led-rebuild-brt-ctrl-2 { - marvell,pins = "mpp45"; + marvell,pins = "mpp47"; marvell,function = "gpio"; };
@@ -157,14 +157,14 @@ gpios = <&gpio0 16 0>; linux,default-trigger = "default-on"; }; - health_led1 { + rebuild_led { + label = "status:white:rebuild_led"; + gpios = <&gpio1 4 0>; + }; + health_led { label = "status:red:health_led"; gpios = <&gpio1 5 0>; }; - health_led2 { - label = "status:white:health_led"; - gpios = <&gpio1 4 0>; - }; backup_led { label = "status:blue:backup_led"; gpios = <&gpio0 15 0>;
arch/arm/mach-imx/clk-imx35.c +1 -0
@@ -257,6 +257,7 @@ int __init mx35_clocks_init()clk_register_clkdev (clk[wdog_gate],NULL ,"imx2-wdt.0" );clk_register_clkdev (clk[nfc_div],NULL ,"imx25-nand.0" );clk_register_clkdev (clk[csi_gate],NULL ,"mx3-camera.0" ); +clk_register_clkdev (clk[admux_gate],"audmux" ,NULL );clk_prepare_enable (clk[spba_gate]);clk_prepare_enable (clk[gpio1_gate]);
arch/x86/include/asm/paravirt.h +4 -1
@@ -703,7 +703,10 @@ static inline void arch_leave_lazy_mmu_mode(void)PVOP_VCALL0 (pv_mmu_ops.lazy_mode.leave); } -void arch_flush_lazy_mmu_mode (void ); +static inline void arch_flush_lazy_mmu_mode (void ) +{ +PVOP_VCALL0 (pv_mmu_ops.lazy_mode.flush); +}static inline void __set_fixmap (unsigned /* enum fixed_addresses */ idx,phys_addr_t phys,pgprot_t flags)
arch/x86/include/asm/paravirt_types.h +2 -0
@@ -91,6 +91,7 @@ struct pv_lazy_ops {/* Set deferred update mode, used for batching operations. */ void (*enter)(void );void (*leave)(void ); +void (*flush)(void ); };struct pv_time_ops {
@@ -679,6 +680,7 @@ void paravirt_end_context_switch(struct task_struct *next);void paravirt_enter_lazy_mmu (void );void paravirt_leave_lazy_mmu (void ); +void paravirt_flush_lazy_mmu (void );void _paravirt_nop (void );u32 _paravirt_ident_32 (u32 );
arch/x86/include/asm/tlb.h +1 -1
@@ -7,7 +7,7 @@#define tlb_flush (tlb) \ { \ - if (tlb->fullmm == 0) \ + if (!tlb->fullmm && !tlb->need_flush_all) \ flush_tlb_mm_range(tlb->mm, tlb->start, tlb->end, 0UL); \ else \ flush_tlb_mm_range(tlb->mm, 0UL, TLB_FLUSH_ALL, 0UL); \
arch/x86/kernel/paravirt.c +13 -12
@@ -263,6 +263,18 @@ void paravirt_leave_lazy_mmu(void)leave_lazy (PARAVIRT_LAZY_MMU ); } +void paravirt_flush_lazy_mmu (void ) +{ +preempt_disable (); + +if (paravirt_get_lazy_mode () ==PARAVIRT_LAZY_MMU ) { +arch_leave_lazy_mmu_mode (); +arch_enter_lazy_mmu_mode (); + } + +preempt_enable (); +} +void paravirt_start_context_switch (struct task_struct *prev) {BUG_ON (preemptible ());
@@ -292,18 +304,6 @@ enum paravirt_lazy_mode paravirt_get_lazy_mode(void)return this_cpu_read (paravirt_lazy_mode); } -void arch_flush_lazy_mmu_mode (void ) -{ -preempt_disable (); - -if (paravirt_get_lazy_mode () ==PARAVIRT_LAZY_MMU ) { -arch_leave_lazy_mmu_mode (); -arch_enter_lazy_mmu_mode (); - } - -preempt_enable (); -} -struct pv_info pv_info = { .name ="bare hardware" , .paravirt_enabled =0 ,
@@ -475,6 +475,7 @@ struct pv_mmu_ops pv_mmu_ops = { .lazy_mode = { .enter = paravirt_nop, .leave = paravirt_nop, + .flush = paravirt_nop, }, .set_fixmap = native_set_fixmap,
arch/x86/lguest/boot.c +1 -0
@@ -1333,6 +1333,7 @@ __init void lguest_init(void) pv_mmu_ops.read_cr3 = lguest_read_cr3; pv_mmu_ops.lazy_mode.enter = paravirt_enter_lazy_mmu; pv_mmu_ops.lazy_mode.leave = lguest_leave_lazy_mmu_mode; + pv_mmu_ops.lazy_mode.flush = paravirt_flush_lazy_mmu; pv_mmu_ops.pte_update = lguest_pte_update; pv_mmu_ops.pte_update_defer = lguest_pte_update;
arch/x86/mm/fault.c +4 -2
@@ -378,10 +378,12 @@ static noinline __kprobes int vmalloc_fault(unsigned long address)if (pgd_none (*pgd_ref))return -1 ; -if (pgd_none (*pgd)) +if (pgd_none (*pgd)) {set_pgd (pgd, *pgd_ref); -else +arch_flush_lazy_mmu_mode (); + }else {BUG_ON (pgd_page_vaddr (*pgd) !=pgd_page_vaddr (*pgd_ref)); + }/* * Below here mismatches are bugs because these lower tables
arch/x86/mm/pgtable.c +7 -0
@@ -58,6 +58,13 @@ void ___pte_free_tlb(struct mmu_gather *tlb, struct page *pte)void ___pmd_free_tlb (struct mmu_gather *tlb,pmd_t *pmd) {paravirt_release_pmd (__pa (pmd) >>PAGE_SHIFT ); +/* +* NOTE! For PAE, any changes to the top page-directory-pointer-table +* entries need a full cr3 reload to flush. +*/ +#ifdef CONFIG_X86_PAE + tlb->need_flush_all =1 ; +#endif tlb_remove_page (tlb,virt_to_page (pmd)); }
arch/x86/xen/mmu.c +1 -0
@@ -2190,6 +2190,7 @@ static const struct pv_mmu_ops xen_mmu_ops __initconst = { .lazy_mode = { .enter = paravirt_enter_lazy_mmu, .leave = xen_leave_lazy_mmu, + .flush = paravirt_flush_lazy_mmu, }, .set_fixmap = xen_set_fixmap,
drivers/dma/omap-dma.c +14 -6
@@ -276,12 +276,20 @@ static void omap_dma_issue_pending(struct dma_chan *chan)spin_lock_irqsave (&c->vc.lock, flags);if (vchan_issue_pending (&c->vc) && !c->desc) { -struct omap_dmadev *d =to_omap_dma_dev (chan->device); -spin_lock (&d->lock); -if (list_empty (&c->node)) -list_add_tail (&c->node, &d->pending); -spin_unlock (&d->lock); -tasklet_schedule (&d->task); +/* +* c->cyclic is used only by audio and in this case the DMA need +* to be started without delay. +*/ +if (!c->cyclic) { +struct omap_dmadev *d =to_omap_dma_dev (chan->device); +spin_lock (&d->lock); +if (list_empty (&c->node)) +list_add_tail (&c->node, &d->pending); +spin_unlock (&d->lock); +tasklet_schedule (&d->task); + }else { +omap_dma_start_desc (c); + } }spin_unlock_irqrestore (&c->vc.lock, flags); }
drivers/gpio/gpiolib-of.c +2 -3
@@ -228,7 +228,7 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip)if (!np)return ; - do { +for (;; index++) { ret =of_parse_phandle_with_args (np,"gpio-ranges" ,"#gpio-range-cells" , index, &pinspec);if (ret)
@@ -257,8 +257,7 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip)if (ret) break; - - }while (index++); + } }#else
drivers/gpu/drm/udl/udl_connector.c +4 -0
@@ -61,6 +61,10 @@ static int udl_get_modes(struct drm_connector *connector)int ret; edid = (struct edid *)udl_get_edid (udl); +if (!edid) { +drm_mode_connector_update_edid_property (connector,NULL ); +return 0 ; + }/* * We only read the main block, but if the monitor reports extension
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_lcn.c +130 -239
542 lines not on this page · raw message
drivers/net/wireless/brcm80211/brcmsmac/phy/phytbl_lcn.c +32 -32
102 lines not on this page · raw message
drivers/scsi/libsas/sas_expander.c +12 -0
@@ -235,6 +235,17 @@ static void sas_set_ex_phy(struct domain_device *dev, int phy_id, void *rsp) linkrate = phy->linkrate;memcpy (sas_addr, phy->attached_sas_addr,SAS_ADDR_SIZE ); +/* Handle vacant phy - rest of dr data is not valid so skip it */ +if (phy->phy_state ==PHY_VACANT ) { +memset (phy->attached_sas_addr,0 ,SAS_ADDR_SIZE ); + phy->attached_dev_type =NO_DEVICE ; +if (!test_bit (SAS_HA_ATA_EH_ACTIVE , &ha->state)) { + phy->phy_id = phy_id; + goto skip; + }else + goto out; + } + phy->attached_dev_type =to_dev_type (dr);if (test_bit (SAS_HA_ATA_EH_ACTIVE , &ha->state)) goto out;
@@ -272,6 +283,7 @@ static void sas_set_ex_phy(struct domain_device *dev, int phy_id, void *rsp) phy->phy->maximum_linkrate = dr->pmax_linkrate; phy->phy->negotiated_linkrate = phy->linkrate; + skip:if (new_phy)if (sas_phy_add (phy->phy)) {sas_phy_free (phy->phy);
drivers/target/target_core_alua.c +3 -0
@@ -408,6 +408,7 @@ static inline int core_alua_state_standby(case REPORT_LUNS :case RECEIVE_DIAGNOSTIC :case SEND_DIAGNOSTIC : +return 0 ;case MAINTENANCE_IN :switch (cdb[1 ] &0x1f ) {case MI_REPORT_TARGET_PGS :
@@ -450,6 +451,7 @@ static inline int core_alua_state_unavailable(switch (cdb[0 ]) {case INQUIRY :case REPORT_LUNS : +return 0 ;case MAINTENANCE_IN :switch (cdb[1 ] &0x1f ) {case MI_REPORT_TARGET_PGS :
@@ -490,6 +492,7 @@ static inline int core_alua_state_transition(switch (cdb[0 ]) {case INQUIRY :case REPORT_LUNS : +return 0 ;case MAINTENANCE_IN :switch (cdb[1 ] &0x1f ) {case MI_REPORT_TARGET_PGS :
drivers/tty/tty_ldisc.c +5 -5
@@ -934,17 +934,17 @@ void tty_ldisc_release(struct tty_struct *tty, struct tty_struct *o_tty)* race with the set_ldisc code path. */ -tty_lock_pair (tty, o_tty);tty_ldisc_halt (tty); -tty_ldisc_flush_works (tty); -if (o_tty) { +if (o_tty)tty_ldisc_halt (o_tty); + +tty_ldisc_flush_works (tty); +if (o_tty)tty_ldisc_flush_works (o_tty); - } +tty_lock_pair (tty, o_tty);/* This will need doing differently if we need to lock */ tty_ldisc_kill (tty); -if (o_tty)tty_ldisc_kill (o_tty);
fs/cifs/connect.c +13 -3
@@ -1546,14 +1546,24 @@ cifs_parse_mount_options(const char *mountdata, const char *devname, }break ;case Opt_blank_pass: - vol->password =NULL ; -break ; -case Opt_pass:/* passwords have to be handled differently * to allow the character used for deliminator * to be passed within them */ +/* +* Check if this is a case where the password +* starts with a delimiter +*/ + tmp_end =strchr (data,'=' ); + tmp_end++; +if (!(tmp_end < end && tmp_end[1 ] == delim)) { +/* No it is not. Set the password to NULL */ + vol->password =NULL ; +break ; + } +/* Yes it is. Drop down to Opt_pass below.*/ +case Opt_pass:/* Obtain the value string */ value =strchr (data,'=' ); value++;
fs/gfs2/file.c +4 -1
@@ -924,8 +924,11 @@ static int gfs2_lock(struct file *file, int cmd, struct file_lock *fl) cmd =F_SETLK ; fl->fl_type =F_UNLCK ; } -if (unlikely (test_bit (SDF_SHUTDOWN , &sdp->sd_flags))) +if (unlikely (test_bit (SDF_SHUTDOWN , &sdp->sd_flags))) { +if (fl->fl_type ==F_UNLCK ) +posix_lock_file_wait (file, fl);return -EIO ; + }if (IS_GETLK (cmd))return dlm_posix_get (ls->ls_dlm, ip->i_no_addr, file, fl);else if (fl->fl_type ==F_UNLCK )
fs/gfs2/rgrp.c +1 -1
@@ -576,7 +576,7 @@ int gfs2_rs_alloc(struct gfs2_inode *ip)RB_CLEAR_NODE (&ip->i_res->rs_node); out:up_write (&ip->i_rw_mutex); -return 0 ; +return error; }static void dump_rs (struct seq_file *seq,const struct gfs2_blkreserv *rs)
fs/inode.c +1 -1
@@ -725,7 +725,7 @@ void prune_icache_sb(struct super_block *sb, int nr_to_scan)* inode to the back of the list so we don't spin on it. */ if (!spin_trylock (&inode->i_lock)) { -list_move_tail (&inode->i_lru, &sb->s_inode_lru); +list_move (&inode->i_lru, &sb->s_inode_lru);continue ; }
include/asm-generic/tlb.h +6 -1
@@ -99,7 +99,12 @@ struct mmu_gather { unsigned int need_flush : 1, /* Did free PTEs */ fast_mode : 1; /* No batching */ -unsigned int fullmm; +/* we are in the middle of an operation to clear +* a full mm and can make some optimizations */ + unsigned int fullmm : 1, +/* we have performed an operation which +* requires a complete flush of the tlb */ + need_flush_all : 1;struct mmu_gather_batch *active;struct mmu_gather_batch local;
include/linux/ftrace.h +2 -1
@@ -394,7 +394,6 @@ ssize_t ftrace_filter_write(struct file *file, const char __user *ubuf, size_t cnt, loff_t *ppos);ssize_t ftrace_notrace_write (struct file *file,const char __user *ubuf,size_t cnt,loff_t *ppos); -loff_t ftrace_regex_lseek (struct file *file,loff_t offset,int whence);int ftrace_regex_release (struct inode *inode,struct file *file);void __init
@@ -567,6 +566,8 @@ static inline int ftrace_regex_release(struct inode *inode, struct file *file) { return -ENODEV; }#endif /* CONFIG_DYNAMIC_FTRACE */ +loff_t ftrace_filter_lseek (struct file *file,loff_t offset,int whence); +/* totally disable ftrace - can not re-enable after this */ void ftrace_kill (void );
ipc/msg.c +1 -0
@@ -872,6 +872,7 @@ long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp, goto out_unlock;break ; } + msg =ERR_PTR (-EAGAIN ); }else break ; msg_counter++;
kernel/sched/clock.c +26 -0
@@ -176,10 +176,36 @@ static u64 sched_clock_remote(struct sched_clock_data *scd)u64 this_clock, remote_clock;u64 *ptr, old_val, val; +#if BITS_PER_LONG !=64 +again: +/* +* Careful here: The local and the remote clock values need to +* be read out atomic as we need to compare the values and +* then update either the local or the remote side. So the +* cmpxchg64 below only protects one readout. +* +* We must reread via sched_clock_local() in the retry case on +* 32bit as an NMI could use sched_clock_local() via the +* tracer and hit between the readout of +* the low32bit and the high 32bit portion. +*/ + this_clock =sched_clock_local (my_scd); +/* +* We must enforce atomic readout on 32bit, otherwise the +* update on the remote cpu can hit inbetween the readout of +* the low32bit and the high 32bit portion. +*/ + remote_clock =cmpxchg64 (&scd->clock,0 ,0 ); +#else +/* +* On 64bit the read of [my]scd->clock is atomic versus the +* update, so we can avoid the above 32bit dance. +*/ sched_clock_local (my_scd); again: this_clock = my_scd->clock; remote_clock = scd->clock; +#endif /* * Use the opportunity that we have both locks
kernel/sys.c +2 -1
@@ -323,7 +323,6 @@ void kernel_restart_prepare(char *cmd) system_state =SYSTEM_RESTART ;usermodehelper_disable ();device_shutdown (); -syscore_shutdown (); }/**
@@ -369,6 +368,7 @@ void kernel_restart(char *cmd) {kernel_restart_prepare (cmd);disable_nonboot_cpus (); +syscore_shutdown ();if (!cmd)printk (KERN_EMERG "Restarting system.\n" );else
@@ -394,6 +394,7 @@ static void kernel_shutdown_prepare(enum system_states state)void kernel_halt (void ) {kernel_shutdown_prepare (SYSTEM_HALT ); +disable_nonboot_cpus ();syscore_shutdown ();printk (KERN_EMERG "System halted.\n" );kmsg_dump (KMSG_DUMP_HALT );
kernel/trace/ftrace.c +18 -19
@@ -668,7 +668,6 @@ int ftrace_profile_pages_init(struct ftrace_profile_stat *stat)free_page (tmp); } -free_page ((unsigned long )stat->pages); stat->pages =NULL ; stat->start =NULL ;
@@ -1028,6 +1027,19 @@ static __init void ftrace_profile_debugfs(struct dentry *d_tracer)static struct pid *const ftrace_swapper_pid = &init_struct_pid; +loff_t +ftrace_filter_lseek (struct file *file,loff_t offset,int whence) +{ +loff_t ret; + +if (file->f_mode &FMODE_READ ) + ret =seq_lseek (file, offset, whence); +else + file->f_pos = ret =1 ; + +return ret; +} +#ifdef CONFIG_DYNAMIC_FTRACE #ifndef CONFIG_FTRACE_MCOUNT_RECORD
@@ -2590,7 +2602,7 @@ static void ftrace_filter_reset(struct ftrace_hash *hash)* routine, you can use ftrace_filter_write() for the write * routine if @flag has FTRACE_ITER_FILTER set, or * ftrace_notrace_write() if @flag has FTRACE_ITER_NOTRACE set. -* ftrace_regex_lseek() should be used as the lseek routine, and +* ftrace_filter_lseek() should be used as the lseek routine, and * release must call ftrace_regex_release(). */ int
@@ -2674,19 +2686,6 @@ ftrace_notrace_open(struct inode *inode, struct file *file) inode, file); } -loff_t -ftrace_regex_lseek (struct file *file,loff_t offset,int whence) -{ -loff_t ret; - -if (file->f_mode &FMODE_READ ) - ret =seq_lseek (file, offset, whence); -else - file->f_pos = ret =1 ; - -return ret; -} -static int ftrace_match (char *str,char *regex,int len,int type) {int matched =0 ;
@@ -3549,7 +3548,7 @@ static const struct file_operations ftrace_filter_fops = { .open = ftrace_filter_open, .read = seq_read, .write = ftrace_filter_write, - .llseek = ftrace_regex_lseek, + .llseek = ftrace_filter_lseek, .release = ftrace_regex_release, };
@@ -3557,7 +3556,7 @@ static const struct file_operations ftrace_notrace_fops = { .open = ftrace_notrace_open, .read = seq_read, .write = ftrace_notrace_write, - .llseek = ftrace_regex_lseek, + .llseek = ftrace_filter_lseek, .release = ftrace_regex_release, };
@@ -3762,8 +3761,8 @@ static const struct file_operations ftrace_graph_fops = { .open = ftrace_graph_open, .read = seq_read, .write = ftrace_graph_write, + .llseek = ftrace_filter_lseek, .release = ftrace_graph_release, - .llseek = seq_lseek, };#endif /* CONFIG_FUNCTION_GRAPH_TRACER */
@@ -4421,7 +4420,7 @@ static const struct file_operations ftrace_pid_fops = { .open = ftrace_pid_open, .write = ftrace_pid_write, .read = seq_read, - .llseek = seq_lseek, + .llseek = ftrace_filter_lseek, .release = ftrace_pid_release, };
kernel/trace/trace_stack.c +1 -1
@@ -322,7 +322,7 @@ static const struct file_operations stack_trace_filter_fops = { .open = stack_trace_filter_open, .read = seq_read, .write = ftrace_filter_write, - .llseek = ftrace_regex_lseek, + .llseek = ftrace_filter_lseek, .release = ftrace_regex_release, };
lib/kobject.c +8 -1
@@ -529,6 +529,13 @@ struct kobject *kobject_get(struct kobject *kobj)return kobj; } +static struct kobject *kobject_get_unless_zero (struct kobject *kobj) +{ +if (!kref_get_unless_zero (&kobj->kref)) + kobj =NULL ; +return kobj; +} +/* * kobject_cleanup - free kobject resources. * @kobj: object to cleanup
@@ -751,7 +758,7 @@ struct kobject *kset_find_obj(struct kset *kset, const char *name)list_for_each_entry (k, &kset->list, entry) {if (kobject_name (k) && !strcmp (kobject_name (k), name)) { - ret =kobject_get (k); + ret =kobject_get_unless_zero (k);break ; } }
mm/memory.c +1 -0
@@ -212,6 +212,7 @@ void tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm, bool fullmm) tlb->mm = mm; tlb->fullmm = fullmm; + tlb->need_flush_all =0 ; tlb->start =-1UL ; tlb->end =0 ; tlb->need_flush =0 ;
sound/soc/codecs/wm5102.c +1 -1
@@ -576,7 +576,7 @@ static int wm5102_sysclk_ev(struct snd_soc_dapm_widget *w, struct snd_kcontrol *kcontrol, int event) {struct snd_soc_codec *codec = w->codec; -struct arizona *arizona =dev_get_drvdata (codec->dev); +struct arizona *arizona =dev_get_drvdata (codec->dev->parent);struct regmap *regmap = codec->control_data;const struct reg_default *patch =NULL ;int i, patch_size;
sound/soc/codecs/wm8903.c +2 -0
@@ -1083,6 +1083,8 @@ static const struct snd_soc_dapm_route wm8903_intercon[] = { { "ROP", NULL, "Right Speaker PGA" }, { "RON", NULL, "Right Speaker PGA" }, + { "Charge Pump", NULL, "CLK_DSP" }, + { "Left Headphone Output PGA", NULL, "Charge Pump" }, { "Right Headphone Output PGA", NULL, "Charge Pump" }, { "Left Line Output PGA", NULL, "Charge Pump" },
sound/soc/soc-core.c +1 -1
@@ -2959,7 +2959,7 @@ int snd_soc_put_volsw_range(struct snd_kcontrol *kcontrol, val = val << shift; ret =snd_soc_update_bits_locked (codec, reg, val_mask, val); -if (ret !=0 ) +if (ret <0 )return ret;if (snd_soc_volsw_is_stereo (mc)) {
sound/usb/mixer_quirks.c +2 -2
@@ -509,7 +509,7 @@ static int snd_nativeinstruments_control_get(struct snd_kcontrol *kcontrol,else ret =usb_control_msg (dev,usb_rcvctrlpipe (dev,0 ), bRequest,USB_TYPE_VENDOR |USB_RECIP_DEVICE |USB_DIR_IN , -0 ,cpu_to_le16 (wIndex), +0 , wIndex, &tmp,sizeof (tmp),1000 );up_read (&mixer->chip->shutdown_rwsem);
@@ -540,7 +540,7 @@ static int snd_nativeinstruments_control_put(struct snd_kcontrol *kcontrol,else ret =usb_control_msg (dev,usb_sndctrlpipe (dev,0 ), bRequest,USB_TYPE_VENDOR |USB_RECIP_DEVICE |USB_DIR_OUT , -cpu_to_le16 (wValue),cpu_to_le16 (wIndex), + wValue, wIndex,NULL ,0 ,1000 );up_read (&mixer->chip->shutdown_rwsem);
sound/usb/quirks.c +1 -1
@@ -486,7 +486,7 @@ static int snd_usb_nativeinstruments_boot_quirk(struct usb_device *dev) {int ret =usb_control_msg (dev,usb_sndctrlpipe (dev,0 ),0xaf ,USB_TYPE_VENDOR |USB_RECIP_DEVICE , -cpu_to_le16 (1 ),0 ,NULL ,0 ,1000 ); +1 ,0 ,NULL ,0 ,1000 );if (ret <0 )return ret;