Linux 3.0.19
Greg KH
maintainerI'm announcing the release of the 3.0.19 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
------------
Makefile | 2 arch/arm/mach-ux500/Kconfig | 1 arch/arm/mm/proc-v7.S | 6 - arch/x86/include/asm/uv/uv_hub.h | 4 - arch/x86/kernel/microcode_amd.c | 24 ++++++- arch/x86/net/bpf_jit_comp.c | 36 ++++++---- crypto/sha512_generic.c | 62 ++++++++++-------- drivers/gpu/drm/drm_auth.c | 6 + drivers/gpu/drm/drm_fops.c | 5 + drivers/gpu/drm/i915/intel_sdvo.c | 8 -- drivers/gpu/drm/radeon/radeon_irq_kms.c | 6 + drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 2 drivers/hwmon/f71805f.c | 10 +- drivers/hwmon/sht15.c | 3 drivers/hwmon/w83627ehf.c | 6 + drivers/net/bonding/bond_alb.c | 27 ++------ drivers/tty/serial/amba-pl011.c | 14 ++++ drivers/tty/serial/jsm/jsm_driver.c | 1 drivers/tty/tty_port.c | 12 ++- drivers/usb/class/cdc-wdm.c | 59 +++++++++++------ drivers/usb/host/ehci-fsl.c | 2 drivers/usb/host/xhci-ring.c | 6 + drivers/usb/misc/usbsevseg.c | 2 drivers/usb/serial/cp210x.c | 107 ++++++++++++++++++++++---------- drivers/usb/serial/ftdi_sio.c | 14 ++-- drivers/usb/serial/ftdi_sio_ids.h | 19 +++++ drivers/usb/serial/io_ti.c | 10 -- drivers/usb/serial/option.c | 5 + drivers/usb/serial/qcaux.c | 7 +- fs/ecryptfs/crypto.c | 49 +------------- fs/ecryptfs/inode.c | 48 ++++++++++---- fs/ecryptfs/miscdev.c | 56 +++++++++++----- fs/ecryptfs/read_write.c | 19 ++++- fs/xfs/linux-2.6/xfs_discard.c | 4 - fs/xfs/xfs_vnodeops.c | 3 include/drm/drmP.h | 1 include/net/netns/generic.h | 1 kernel/printk.c | 6 + kernel/trace/ftrace.c | 76 ++++++++++++++-------- net/caif/caif_dev.c | 11 +-- net/caif/cfcnfg.c | 1 net/core/net_namespace.c | 31 ++++----- net/ipv4/ah4.c | 2 net/ipv4/tcp_ipv4.c | 2 net/ipv4/tcp_output.c | 6 - net/ipv6/ah6.c | 2 net/ipv6/tcp_ipv6.c | 2 net/l2tp/l2tp_ip.c | 5 - net/rds/af_rds.c | 20 ++--- sound/pci/hda/patch_realtek.c | 11 +++ sound/pci/hda/patch_sigmatel.c | 8 +- 51 files changed, 507 insertions(+), 323 deletions(-)
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 0 -SUBLEVEL = 18 +SUBLEVEL = 19 EXTRAVERSION = NAME = Sneaky Weasel
arch/arm/mach-ux500/Kconfig +1 -0
@@ -7,6 +7,7 @@ config UX500_SOC_COMMON select HAS_MTU select ARM_ERRATA_753970 select ARM_ERRATA_754322 + select ARM_ERRATA_764369 menu "Ux500 SoC"
arch/arm/mm/proc-v7.S +0 -6
@@ -270,10 +270,6 @@ cpu_resume_l1_flags: * Initialise TLB, Caches, and MMU state ready to switch the MMU * on. Return in r0 the new CP15 C1 control register setting. * - * We automatically detect if we have a Harvard cache, and use the - * Harvard cache control instructions insead of the unified cache - * control instructions. - * * This should be able to cover all ARMv7 cores. * * It is assumed that:
@@ -363,9 +359,7 @@ __v7_setup: #endif 3: mov r10, #0 -#ifdef HARVARD_CACHE mcr p15, 0, r10, c7, c5, 0 @ I+BTB cache invalidate -#endif dsb #ifdef CONFIG_MMU mcr p15, 0, r10, c8, c7, 0 @ invalidate I + D TLBs
arch/x86/include/asm/uv/uv_hub.h +2 -2
@@ -318,13 +318,13 @@ uv_gpa_in_mmr_space(unsigned long gpa)/* UV global physical address --> socket phys RAM */ static inline unsigned long uv_gpa_to_soc_phys_ram (unsigned long gpa) { -unsigned long paddr = gpa & uv_hub_info->gpa_mask; +unsigned long paddr;unsigned long remap_base = uv_hub_info->lowmem_remap_base;unsigned long remap_top = uv_hub_info->lowmem_remap_top; gpa = ((gpa << uv_hub_info->m_shift) >> uv_hub_info->m_shift) | ((gpa >> uv_hub_info->n_lshift) << uv_hub_info->m_val); - gpa = gpa & uv_hub_info->gpa_mask; + paddr = gpa & uv_hub_info->gpa_mask;if (paddr >= remap_base && paddr < remap_base + remap_top) paddr -= remap_base;return paddr;
arch/x86/kernel/microcode_amd.c +22 -2
@@ -298,13 +298,33 @@ free_table:return state; } +/* +* AMD microcode firmware naming convention, up to family 15h they are in +* the legacy file: +* +* amd-ucode/microcode_amd.bin +* +* This legacy file is always smaller than 2K in size. +* +* Starting at family 15h they are in family specific firmware files: +* +* amd-ucode/microcode_amd_fam15h.bin +* amd-ucode/microcode_amd_fam16h.bin +* ... +* +* These might be larger than 2K. +*/ static enum ucode_state request_microcode_amd (int cpu,struct device *device) { -const char *fw_name ="amd-ucode/microcode_amd.bin" ; +char fw_name[36 ] ="amd-ucode/microcode_amd.bin" ;const struct firmware *fw;enum ucode_state ret =UCODE_NFOUND ; +struct cpuinfo_x86 *c = &cpu_data (cpu); + +if (c->x86 >=0x15 ) +snprintf (fw_name,sizeof (fw_name),"amd-ucode/microcode_amd_fam%.2xh.bin" , c->x86); -if (request_firmware (&fw, fw_name, device)) { +if (request_firmware (&fw, (const char *)fw_name, device)) {pr_err ("failed to load file %s\n" , fw_name); goto out; }
arch/x86/net/bpf_jit_comp.c +22 -14
@@ -151,17 +151,18 @@ void bpf_jit_compile(struct sk_filter *fp) cleanup_addr = proglen;/* epilogue address */ for (pass =0 ; pass <10 ; pass++) { +u8 seen_or_pass0 = (pass ==0 ) ? (SEEN_XREG |SEEN_DATAREF |SEEN_MEM ) : seen;/* no prologue/epilogue for trivial filters (RET something) */ proglen =0 ; prog = temp; -if (seen) { +if (seen_or_pass0) {EMIT4 (0x55 ,0x48 ,0x89 ,0xe5 );/* push %rbp; mov %rsp,%rbp */ EMIT4 (0x48 ,0x83 ,0xec ,96 );/* subq $96,%rsp */ /* note : must save %rbx in case bpf_error is hit */ -if (seen & (SEEN_XREG |SEEN_DATAREF )) +if (seen_or_pass0 & (SEEN_XREG |SEEN_DATAREF ))EMIT4 (0x48 ,0x89 ,0x5d ,0xf8 );/* mov %rbx, -8(%rbp) */ -if (seen &SEEN_XREG ) +if (seen_or_pass0 &SEEN_XREG )CLEAR_X ();/* make sure we dont leek kernel memory */ /*
@@ -170,7 +171,7 @@ void bpf_jit_compile(struct sk_filter *fp)* r9 = skb->len - skb->data_len * r8 = skb->data */ -if (seen &SEEN_DATAREF ) { +if (seen_or_pass0 &SEEN_DATAREF ) {if (offsetof(struct sk_buff , len) <=127 )/* mov off8(%rdi),%r9d */ EMIT4 (0x44 ,0x8b ,0x4f , offsetof(struct sk_buff , len));
@@ -260,9 +261,14 @@ void bpf_jit_compile(struct sk_filter *fp)case BPF_S_ALU_DIV_X :/* A /= X; */ seen |=SEEN_XREG ;EMIT2 (0x85 ,0xdb );/* test %ebx,%ebx */ -if (pc_ret0 !=-1 ) -EMIT_COND_JMP (X86_JE , addrs[pc_ret0] - (addrs[i] -4 )); -else { +if (pc_ret0 >0 ) { +/* addrs[pc_ret0 - 1] is start address of target +* (addrs[i] - 4) is the address following this jmp +* ("xor %edx,%edx; div %ebx" being 4 bytes long) +*/ +EMIT_COND_JMP (X86_JE , addrs[pc_ret0 -1 ] - + (addrs[i] -4 )); + }else {EMIT_COND_JMP (X86_JNE ,2 +5 );CLEAR_A ();EMIT1_off32 (0xe9 , cleanup_addr - (addrs[i] -4 ));/* jmp .+off32 */
@@ -335,12 +341,12 @@ void bpf_jit_compile(struct sk_filter *fp) }/* fallinto */ case BPF_S_RET_A : -if (seen) { +if (seen_or_pass0) {if (i != flen -1 ) {EMIT_JMP (cleanup_addr - addrs[i]);break ; } -if (seen &SEEN_XREG ) +if (seen_or_pass0 &SEEN_XREG )EMIT4 (0x48 ,0x8b ,0x5d ,0xf8 );/* mov -8(%rbp),%rbx */ EMIT1 (0xc9 );/* leaveq */ }
@@ -483,8 +489,9 @@ common_load: seen |= SEEN_DATAREF; goto common_load;case BPF_S_LDX_B_MSH :if ((int )K <0 ) { -if (pc_ret0 !=-1 ) { -EMIT_JMP (addrs[pc_ret0] - addrs[i]); +if (pc_ret0 >0 ) { +/* addrs[pc_ret0 - 1] is the start address */ +EMIT_JMP (addrs[pc_ret0 -1 ] - addrs[i]);break ; }CLEAR_A ();
@@ -599,13 +606,14 @@ cond_branch: f_offset = addrs[i + filter[i].jf] - addrs[i];* use it to give the cleanup instruction(s) addr */ cleanup_addr = proglen -1 ;/* ret */ -if (seen) +if (seen_or_pass0) cleanup_addr -=1 ;/* leaveq */ -if (seen &SEEN_XREG ) +if (seen_or_pass0 &SEEN_XREG ) cleanup_addr -=4 ;/* mov -8(%rbp),%rbx */ if (image) { -WARN_ON (proglen != oldproglen); +if (proglen != oldproglen) +pr_err ("bpb_jit_compile proglen=%u != oldproglen=%u\n" , proglen, oldproglen);break ; }if (proglen == oldproglen) {
crypto/sha512_generic.c +34 -28
95 lines not on this page · raw message
drivers/gpu/drm/drm_auth.c +5 -1
@@ -101,7 +101,7 @@ static int drm_add_magic(struct drm_master *master, struct drm_file *priv,* Searches and unlinks the entry in drm_device::magiclist with the magic * number hash key, while holding the drm_device::struct_mutex lock. */ -static int drm_remove_magic (struct drm_master *master,drm_magic_t magic) +int drm_remove_magic (struct drm_master *master,drm_magic_t magic) {struct drm_magic_entry *pt;struct drm_hash_item *hash;
@@ -136,6 +136,8 @@ static int drm_remove_magic(struct drm_master *master, drm_magic_t magic)* If there is a magic number in drm_file::magic then use it, otherwise * searches an unique non-zero magic number and add it associating it with \p * file_priv. +* This ioctl needs protection by the drm_global_mutex, which protects +* struct drm_file::magic and struct drm_magic_entry::priv. */ int drm_getmagic (struct drm_device *dev,void *data,struct drm_file *file_priv) {
@@ -173,6 +175,8 @@ int drm_getmagic(struct drm_device *dev, void *data, struct drm_file *file_priv)* \return zero if authentication successed, or a negative number otherwise. * * Checks if \p file_priv is associated with the magic number passed in \arg. +* This ioctl needs protection by the drm_global_mutex, which protects +* struct drm_file::magic and struct drm_magic_entry::priv. */ int drm_authmagic (struct drm_device *dev,void *data,struct drm_file *file_priv)
drivers/gpu/drm/drm_fops.c +5 -0
@@ -486,6 +486,11 @@ int drm_release(struct inode *inode, struct file *filp) (long )old_encode_dev (file_priv->minor->device), dev->open_count); +/* Release any auth tokens that might point to this file_priv, +(do that under the drm_global_mutex) */ +if (file_priv->magic) + (void )drm_remove_magic (file_priv->master, file_priv->magic); +/* if the master has gone away we can't do anything with the lock */ if (file_priv->minor->master)drm_master_release (dev, filp);
drivers/gpu/drm/i915/intel_sdvo.c +3 -5
@@ -1059,15 +1059,13 @@ static void intel_sdvo_mode_set(struct drm_encoder *encoder,/* Set the SDVO control regs. */ if (INTEL_INFO (dev)->gen >=4 ) { - sdvox =0 ; +/* The real mode polarity is set by the SDVO commands, using +* struct intel_sdvo_dtd. */ + sdvox =SDVO_VSYNC_ACTIVE_HIGH |SDVO_HSYNC_ACTIVE_HIGH ;if (intel_sdvo->is_hdmi) sdvox |= intel_sdvo->color_range;if (INTEL_INFO (dev)->gen <5 ) sdvox |=SDVO_BORDER_ENABLE ; -if (adjusted_mode->flags &DRM_MODE_FLAG_PVSYNC ) - sdvox |=SDVO_VSYNC_ACTIVE_HIGH ; -if (adjusted_mode->flags &DRM_MODE_FLAG_PHSYNC ) - sdvox |=SDVO_HSYNC_ACTIVE_HIGH ; }else { sdvox =I915_READ (intel_sdvo->sdvo_reg);switch (intel_sdvo->sdvo_reg) {
drivers/gpu/drm/radeon/radeon_irq_kms.c +6 -0
@@ -134,6 +134,12 @@ static bool radeon_msi_ok(struct radeon_device *rdev)/* Dell RS690 only seems to work with MSIs. */ if ((rdev->pdev->device ==0x791f ) && (rdev->pdev->subsystem_vendor ==0x1028 ) && + (rdev->pdev->subsystem_device ==0x01fc )) +return true; + +/* Dell RS690 only seems to work with MSIs. */ +if ((rdev->pdev->device ==0x791f ) && + (rdev->pdev->subsystem_vendor ==0x1028 ) && (rdev->pdev->subsystem_device ==0x01fd ))return true;
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +1 -1
@@ -313,7 +313,7 @@ int vmw_framebuffer_create_handle(struct drm_framebuffer *fb, unsigned int *handle) {if (handle) - handle =0 ; + *handle =0 ;return 0 ; }
drivers/hwmon/f71805f.c +5 -5
@@ -283,11 +283,11 @@ static inline long temp_from_reg(u8 reg)static inline u8 temp_to_reg (long val) { -if (val <0 ) - val =0 ; -else if (val >1000 *0xff ) - val =0xff ; -return ((val +500 ) /1000 ); +if (val <=0 ) +return 0 ; +if (val >=1000 *0xff ) +return 0xff ; +return (val +500 ) /1000 ; }/*
drivers/hwmon/sht15.c +2 -1
@@ -883,7 +883,7 @@ static int sht15_invalidate_voltage(struct notifier_block *nb,static int __devinit sht15_probe (struct platform_device *pdev) { -int ret =0 ; +int ret;struct sht15_data *data =kzalloc (sizeof (*data),GFP_KERNEL );u8 status =0 ;
@@ -901,6 +901,7 @@ static int __devinit sht15_probe(struct platform_device *pdev)init_waitqueue_head (&data->wait_queue);if (pdev->dev.platform_data ==NULL ) { + ret = -EINVAL ;dev_err (&pdev->dev,"no platform data supplied\n" ); goto err_free_data; }
drivers/hwmon/w83627ehf.c +6 -0
@@ -1295,6 +1295,7 @@ store_pwm_mode(struct device *dev, struct device_attribute *attr, {struct w83627ehf_data *data =dev_get_drvdata (dev);struct sensor_device_attribute *sensor_attr =to_sensor_dev_attr (attr); +struct w83627ehf_sio_data *sio_data = dev->platform_data;int nr = sensor_attr->index;unsigned long val;int err;
@@ -1306,6 +1307,11 @@ store_pwm_mode(struct device *dev, struct device_attribute *attr,if (val >1 )return -EINVAL ; + +/* On NCT67766F, DC mode is only supported for pwm1 */ +if (sio_data->kind == nct6776 && nr && val !=1 ) +return -EINVAL ; +mutex_lock (&data->update_lock); reg =w83627ehf_read_value (data,W83627EHF_REG_PWM_ENABLE [nr]); data->pwm_mode[nr] = val;
drivers/net/bonding/bond_alb.c +9 -18
@@ -871,16 +871,12 @@ static void alb_send_learning_packets(struct slave *slave, u8 mac_addr[]) } } -/* hw is a boolean parameter that determines whether we should try and -* set the hw address of the device as well as the hw address of the -* net_device -*/ -static int alb_set_slave_mac_addr (struct slave *slave,u8 addr[],int hw) +static int alb_set_slave_mac_addr (struct slave *slave,u8 addr[]) {struct net_device *dev = slave->dev;struct sockaddr s_addr; -if (!hw) { +if (slave->bond->params.mode ==BOND_MODE_TLB ) {memcpy (dev->dev_addr, addr, dev->addr_len);return 0 ; }
@@ -910,8 +906,8 @@ static void alb_swap_mac_addr(struct bonding *bond, struct slave *slave1, structu8 tmp_mac_addr[ETH_ALEN ];memcpy (tmp_mac_addr, slave1->dev->dev_addr,ETH_ALEN ); -alb_set_slave_mac_addr (slave1, slave2->dev->dev_addr, bond->alb_info.rlb_enabled); -alb_set_slave_mac_addr (slave2, tmp_mac_addr, bond->alb_info.rlb_enabled); +alb_set_slave_mac_addr (slave1, slave2->dev->dev_addr); +alb_set_slave_mac_addr (slave2, tmp_mac_addr); }
@@ -1058,8 +1054,7 @@ static int alb_handle_addr_collision_on_attach(struct bonding *bond, struct slav/* Try setting slave mac to bond address and fall-through to code handling that situation below... */ -alb_set_slave_mac_addr (slave, bond->dev->dev_addr, - bond->alb_info.rlb_enabled); +alb_set_slave_mac_addr (slave, bond->dev->dev_addr); }/* The slave's address is equal to the address of the bond.
@@ -1095,8 +1090,7 @@ static int alb_handle_addr_collision_on_attach(struct bonding *bond, struct slav }if (free_mac_slave) { -alb_set_slave_mac_addr (slave, free_mac_slave->perm_hwaddr, - bond->alb_info.rlb_enabled); +alb_set_slave_mac_addr (slave, free_mac_slave->perm_hwaddr); pr_warning("%s: Warning: the hw address of slave %s is in use by the bond; giving it the hw address of %s\n", bond->dev->name, slave->dev->name,
@@ -1452,8 +1446,7 @@ int bond_alb_init_slave(struct bonding *bond, struct slave *slave) {int res; - res =alb_set_slave_mac_addr (slave, slave->perm_hwaddr, - bond->alb_info.rlb_enabled); + res =alb_set_slave_mac_addr (slave, slave->perm_hwaddr);if (res) {return res; }
@@ -1604,8 +1597,7 @@ void bond_alb_handle_active_change(struct bonding *bond, struct slave *new_slavealb_swap_mac_addr (bond, swap_slave, new_slave); }else {/* set the new_slave to the bond mac address */ -alb_set_slave_mac_addr (new_slave, bond->dev->dev_addr, - bond->alb_info.rlb_enabled); +alb_set_slave_mac_addr (new_slave, bond->dev->dev_addr); }if (swap_slave) {
@@ -1665,8 +1657,7 @@ int bond_alb_set_mac_address(struct net_device *bond_dev, void *addr)alb_swap_mac_addr (bond, swap_slave, bond->curr_active_slave);alb_fasten_mac_swap (bond, swap_slave, bond->curr_active_slave); }else { -alb_set_slave_mac_addr (bond->curr_active_slave, bond_dev->dev_addr, - bond->alb_info.rlb_enabled); +alb_set_slave_mac_addr (bond->curr_active_slave, bond_dev->dev_addr);read_lock (&bond->lock);alb_send_learning_packets (bond->curr_active_slave, bond_dev->dev_addr);
drivers/tty/serial/amba-pl011.c +14 -0
@@ -1733,9 +1733,19 @@ pl011_console_write(struct console *co, const char *s, unsigned int count) {struct uart_amba_port *uap = amba_ports[co->index];unsigned int status, old_cr, new_cr; +unsigned long flags; +int locked =1 ;clk_enable (uap->clk); +local_irq_save (flags); +if (uap->port.sysrq) + locked =0 ; +else if (oops_in_progress) + locked =spin_trylock (&uap->port.lock); +else +spin_lock (&uap->port.lock); +/* * First save the CR then disable the interrupts */
@@ -1755,6 +1765,10 @@ pl011_console_write(struct console *co, const char *s, unsigned int count) }while (status & UART01x_FR_BUSY);writew (old_cr, uap->port.membase +UART011_CR ); +if (locked) +spin_unlock (&uap->port.lock); +local_irq_restore (flags); +clk_disable (uap->clk); }
drivers/tty/serial/jsm/jsm_driver.c +1 -0
@@ -269,6 +269,7 @@ static void jsm_io_resume(struct pci_dev *pdev)struct jsm_board *brd =pci_get_drvdata (pdev);pci_restore_state (pdev); +pci_save_state (pdev);jsm_uart_port_init (brd); }
drivers/tty/tty_port.c +7 -5
@@ -227,7 +227,6 @@ int tty_port_block_til_ready(struct tty_port *port,int do_clocal =0 , retval;unsigned long flags;DEFINE_WAIT (wait); -int cd;/* block if port is in the process of being closed */ if (tty_hung_up_p (filp) || port->flags &ASYNC_CLOSING ) {
@@ -284,11 +283,14 @@ int tty_port_block_til_ready(struct tty_port *port, retval = -ERESTARTSYS ;break ; } -/* Probe the carrier. For devices with no carrier detect this -will always return true */ - cd =tty_port_carrier_raised (port); +/* +* Probe the carrier. For devices with no carrier detect +* tty_port_carrier_raised will always return true. +* Never ask drivers if CLOCAL is set, this causes troubles +* on some hardware. +*/ if (!(port->flags &ASYNC_CLOSING ) && - (do_clocal || cd)) + (do_clocal ||tty_port_carrier_raised (port)))break ;if (signal_pending (current)) { retval = -ERESTARTSYS ;
drivers/usb/class/cdc-wdm.c +38 -21
171 lines not on this page · raw message
drivers/usb/host/ehci-fsl.c +1 -1
@@ -125,7 +125,7 @@ static int usb_hcd_fsl_probe(const struct hc_driver *driver,*/ if (pdata->init && pdata->init (pdev)) { retval = -ENODEV ; - goto err3; + goto err4; }/* Enable USB controller, 83xx or 8536 */
drivers/usb/host/xhci-ring.c +4 -2
@@ -1218,6 +1218,7 @@ static void handle_vendor_event(struct xhci_hcd *xhci,* * Returns a zero-based port number, which is suitable for indexing into each of * the split roothubs' port arrays and bus state arrays. +* Add one to it in order to call xhci_find_slot_id_by_port. */ static unsigned int find_faked_portnum_from_hw_portnum (struct usb_hcd *hcd,struct xhci_hcd *xhci,u32 port_id)
@@ -1340,7 +1341,7 @@ static void handle_port_status(struct xhci_hcd *xhci, temp |=PORT_LINK_STROBE |XDEV_U0 ;xhci_writel (xhci, temp, port_array[faked_port_index]); slot_id =xhci_find_slot_id_by_port (hcd, xhci, - faked_port_index); + faked_port_index +1 );if (!slot_id) {xhci_dbg (xhci,"slot_id is zero\n" ); goto cleanup;
@@ -3381,7 +3382,8 @@ static int xhci_queue_isoc_tx(struct xhci_hcd *xhci, gfp_t mem_flags,/* Check TD length */ if (running_total != td_len) {xhci_err (xhci,"ISOC TD length unmatch\n" ); -return -EINVAL ; + ret = -EINVAL ; + goto cleanup; } }
drivers/usb/misc/usbsevseg.c +1 -1
@@ -24,7 +24,7 @@#define VENDOR_ID 0x0fc5#define PRODUCT_ID 0x1227 -#define MAXLEN 6 +#define MAXLEN 8/* table of devices that work with this driver */ static const struct usb_device_id id_table[] = {
drivers/usb/serial/cp210x.c +75 -32
172 lines not on this page · raw message
drivers/usb/serial/ftdi_sio.c +10 -4
@@ -796,6 +796,7 @@ static struct usb_device_id id_table_combined [] = { .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { USB_DEVICE(ADI_VID, ADI_GNICEPLUS_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, + { USB_DEVICE(HORNBY_VID, HORNBY_ELITE_PID) }, { USB_DEVICE(JETI_VID, JETI_SPC1201_PID) }, { USB_DEVICE(MARVELL_VID, MARVELL_SHEEVAPLUG_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk },
@@ -804,6 +805,8 @@ static struct usb_device_id id_table_combined [] = { { USB_DEVICE(BAYER_VID, BAYER_CONTOUR_CABLE_PID) }, { USB_DEVICE(FTDI_VID, MARVELL_OPENRD_PID), .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, + { USB_DEVICE(FTDI_VID, TI_XDS100V2_PID), + .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { USB_DEVICE(FTDI_VID, HAMEG_HO820_PID) }, { USB_DEVICE(FTDI_VID, HAMEG_HO720_PID) }, { USB_DEVICE(FTDI_VID, HAMEG_HO730_PID) },
@@ -840,6 +843,7 @@ static struct usb_device_id id_table_combined [] = { .driver_info = (kernel_ulong_t)&ftdi_jtag_quirk }, { USB_DEVICE(ST_VID, ST_STMCLT1030_PID), .driver_info = (kernel_ulong_t)&ftdi_stmclite_quirk }, + { USB_DEVICE(FTDI_VID, FTDI_RF_R106) }, { }, /* Optional parameter entry */ { }/* Terminating entry */ };
@@ -1326,8 +1330,7 @@ static int set_serial_info(struct tty_struct *tty, goto check_and_exit; } -if ((new_serial.baud_base != priv->baud_base) && - (new_serial.baud_base <9600 )) { +if (new_serial.baud_base != priv->baud_base) {mutex_unlock (&priv->cfg_lock);return -EINVAL ; }
@@ -1816,6 +1819,7 @@ static int ftdi_sio_port_remove(struct usb_serial_port *port)static int ftdi_open (struct tty_struct *tty,struct usb_serial_port *port) { +struct ktermios dummy;struct usb_device *dev = port->serial->dev;struct ftdi_private *priv =usb_get_serial_port_data (port);int result;
@@ -1834,8 +1838,10 @@ static int ftdi_open(struct tty_struct *tty, struct usb_serial_port *port)This is same behaviour as serial.c/rs_open() - Kuba */ /* ftdi_set_termios will send usb control messages */ -if (tty) -ftdi_set_termios (tty, port, tty->termios); +if (tty) { +memset (&dummy,0 ,sizeof (dummy)); +ftdi_set_termios (tty, port, &dummy); + }/* Start reading from the device */ result =usb_serial_generic_open (tty, port);
drivers/usb/serial/ftdi_sio_ids.h +19 -0
@@ -39,6 +39,13 @@/* www.candapter.com Ewert Energy Systems CANdapter device */ #define FTDI_CANDAPTER_PID 0x9F80/* Product Id */ +/* +* Texas Instruments XDS100v2 JTAG / BeagleBone A3 +* http://processors.wiki.ti.com/index.php/XDS100 +* http://beagleboard.org/bone +*/ +#define TI_XDS100V2_PID 0xa6d0 +#define FTDI_NXTCAM_PID 0xABB8/* NXTCam for Mindstorms NXT */ /* US Interface Navigator (http://www.usinterface.com/) */
@@ -525,6 +532,12 @@#define ADI_GNICEPLUS_PID 0xF001/* +* Hornby Elite +*/ +#define HORNBY_VID 0x04D8 +#define HORNBY_ELITE_PID 0x000A + +/* * RATOC REX-USB60F */ #define RATOC_VENDOR_ID 0x0584
@@ -1168,3 +1181,9 @@*/ /* TagTracer MIFARE*/ #define FTDI_ZEITCONTROL_TAGTRACE_MIFARE_PID 0xF7C0 + +/* +* Rainforest Automation +*/ +/* ZigBee controller */ +#define FTDI_RF_R106 0x8A28
drivers/usb/serial/io_ti.c +2 -8
@@ -2677,15 +2677,7 @@ cleanup:static void edge_disconnect (struct usb_serial *serial) { -int i; -struct edgeport_port *edge_port; -dbg ("%s" , __func__); - -for (i =0 ; i < serial->num_ports; ++i) { - edge_port =usb_get_serial_port_data (serial->port[i]); -edge_remove_sysfs_attrs (edge_port->port); - } }static void edge_release (struct usb_serial *serial)
@@ -2764,6 +2756,7 @@ static struct usb_serial_driver edgeport_1port_device = { .disconnect = edge_disconnect, .release = edge_release, .port_probe = edge_create_sysfs_attrs, + .port_remove = edge_remove_sysfs_attrs, .ioctl = edge_ioctl, .set_termios = edge_set_termios, .tiocmget = edge_tiocmget,
@@ -2795,6 +2788,7 @@ static struct usb_serial_driver edgeport_2port_device = { .disconnect = edge_disconnect, .release = edge_release, .port_probe = edge_create_sysfs_attrs, + .port_remove = edge_remove_sysfs_attrs, .ioctl = edge_ioctl, .set_termios = edge_set_termios, .tiocmget = edge_tiocmget,
drivers/usb/serial/option.c +5 -0
@@ -480,6 +480,10 @@ static void option_instat_callback(struct urb *urb);#define ZD_VENDOR_ID 0x0685#define ZD_PRODUCT_7000 0x7000 +/* LG products */ +#define LG_VENDOR_ID 0x1004 +#define LG_PRODUCT_L02C 0x618f +/* some devices interfaces need special handling due to a number of reasons */ enum option_blacklist_reason {OPTION_BLACKLIST_NONE =0 ,
@@ -1183,6 +1187,7 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE(YUGA_VENDOR_ID, YUGA_PRODUCT_CLU526) }, { USB_DEVICE_AND_INTERFACE_INFO(VIETTEL_VENDOR_ID, VIETTEL_PRODUCT_VT1000, 0xff, 0xff, 0xff) }, { USB_DEVICE_AND_INTERFACE_INFO(ZD_VENDOR_ID, ZD_PRODUCT_7000, 0xff, 0xff, 0xff) }, + { USB_DEVICE(LG_VENDOR_ID, LG_PRODUCT_L02C) }, /* docomo L-02C modem */ { } /* Terminating entry */ };MODULE_DEVICE_TABLE (usb, option_ids);
drivers/usb/serial/qcaux.c +6 -1
@@ -36,6 +36,7 @@#define UTSTARCOM_PRODUCT_UM175_V1 0x3712#define UTSTARCOM_PRODUCT_UM175_V2 0x3714#define UTSTARCOM_PRODUCT_UM175_ALLTEL 0x3715 +#define PANTECH_PRODUCT_UML190_VZW 0x3716#define PANTECH_PRODUCT_UML290_VZW 0x3718/* CMOTECH devices */
@@ -67,7 +68,11 @@ static struct usb_device_id id_table[] = { { USB_DEVICE_AND_INTERFACE_INFO(LG_VENDOR_ID, LG_PRODUCT_VX4400_6000, 0xff, 0xff, 0x00) }, { USB_DEVICE_AND_INTERFACE_INFO(SANYO_VENDOR_ID, SANYO_PRODUCT_KATANA_LX, 0xff, 0xff, 0x00) }, { USB_DEVICE_AND_INTERFACE_INFO(SAMSUNG_VENDOR_ID, SAMSUNG_PRODUCT_U520, 0xff, 0x00, 0x00) }, - { USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, PANTECH_PRODUCT_UML290_VZW, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, PANTECH_PRODUCT_UML190_VZW, 0xff, 0xff, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, PANTECH_PRODUCT_UML190_VZW, 0xff, 0xfe, 0xff) }, + { USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, PANTECH_PRODUCT_UML290_VZW, 0xff, 0xfd, 0xff) }, /* NMEA */ + { USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, PANTECH_PRODUCT_UML290_VZW, 0xff, 0xfe, 0xff) }, /* WMC */ + { USB_DEVICE_AND_INTERFACE_INFO(UTSTARCOM_VENDOR_ID, PANTECH_PRODUCT_UML290_VZW, 0xff, 0xff, 0xff) }, /* DIAG */ { }, };MODULE_DEVICE_TABLE (usb, id_table);
fs/ecryptfs/crypto.c +6 -43
91 lines not on this page · raw message
fs/ecryptfs/inode.c +36 -12
72 lines not on this page · raw message
fs/ecryptfs/miscdev.c +38 -18
72 lines not on this page · raw message
fs/ecryptfs/read_write.c +14 -5
@@ -132,6 +132,11 @@ int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset,size_t num_bytes = (PAGE_CACHE_SIZE - start_offset_in_page);size_t total_remaining_bytes = ((offset + size) - pos); +if (fatal_signal_pending (current)) { + rc = -EINTR ; +break ; + } +if (num_bytes > total_remaining_bytes) num_bytes = total_remaining_bytes;if (pos < offset) {
@@ -193,15 +198,19 @@ int ecryptfs_write(struct inode *ecryptfs_inode, char *data, loff_t offset, } pos += num_bytes; } -if ((offset + size) > ecryptfs_file_size) { -i_size_write (ecryptfs_inode, (offset + size)); +if (pos > ecryptfs_file_size) { +i_size_write (ecryptfs_inode, pos);if (crypt_stat->flags &ECRYPTFS_ENCRYPTED ) { - rc =ecryptfs_write_inode_size_to_metadata ( +int rc2; + + rc2 =ecryptfs_write_inode_size_to_metadata ( ecryptfs_inode); -if (rc) { +if (rc2) {printk (KERN_ERR "Problem with " "ecryptfs_write_inode_size_to_metadata; " -"rc = [%d]\n" , rc); +"rc = [%d]\n" , rc2); +if (!rc) + rc = rc2; goto out; } }
fs/xfs/linux-2.6/xfs_discard.c +2 -2
@@ -68,7 +68,7 @@ xfs_trim_extents(* Look up the longest btree in the AGF and start with it. */ error =xfs_alloc_lookup_le (cur,0 , -XFS_BUF_TO_AGF (agbp)->agf_longest, &i); +be32_to_cpu (XFS_BUF_TO_AGF (agbp)->agf_longest), &i);if (error) goto out_del_cursor;
@@ -84,7 +84,7 @@ xfs_trim_extents(if (error) goto out_del_cursor;XFS_WANT_CORRUPTED_GOTO (i ==1 , out_del_cursor); -ASSERT (flen <=XFS_BUF_TO_AGF (agbp)->agf_longest); +ASSERT (flen <=be32_to_cpu (XFS_BUF_TO_AGF (agbp)->agf_longest));/* * Too small? Give up.
fs/xfs/xfs_vnodeops.c +2 -1
@@ -554,7 +554,8 @@ xfs_readlink( __func__, (unsigned long long ) ip->i_ino, (long long) pathlen);ASSERT (0 ); -return XFS_ERROR (EFSCORRUPTED ); + error =XFS_ERROR (EFSCORRUPTED ); + goto out; }
include/drm/drmP.h +1 -0
@@ -1323,6 +1323,7 @@ extern int drm_getmagic(struct drm_device *dev, void *data, struct drm_file *file_priv);extern int drm_authmagic (struct drm_device *dev,void *data,struct drm_file *file_priv); +extern int drm_remove_magic (struct drm_master *master,drm_magic_t magic);/* Cache management (drm_cache.c) */ void drm_clflush_pages (struct page *pages[],unsigned long num_pages);
include/net/netns/generic.h +1 -0
@@ -41,6 +41,7 @@ static inline void *net_generic(const struct net *net, int id) ptr = ng->ptr[id -1 ];rcu_read_unlock (); +BUG_ON (!ptr); return ptr; }#endif
kernel/printk.c +4 -2
@@ -318,8 +318,10 @@ static int check_syslog_permissions(int type, bool from_file)return 0 ;/* For historical reasons, accept CAP_SYS_ADMIN too, with a warning */ if (capable (CAP_SYS_ADMIN )) { -WARN_ONCE (1 ,"Attempt to access syslog with CAP_SYS_ADMIN " -"but no CAP_SYSLOG (deprecated).\n" ); +printk_once (KERN_WARNING "%s (%d): " +"Attempt to access syslog with CAP_SYS_ADMIN " +"but no CAP_SYSLOG (deprecated).\n" , + current->comm,task_pid_nr (current));return 0 ; }return -EPERM ;
kernel/trace/ftrace.c +48 -28
180 lines not on this page · raw message
net/caif/caif_dev.c +4 -7
@@ -53,7 +53,6 @@ struct cfcnfg *get_cfcnfg(struct net *net)struct caif_net *caifn;BUG_ON (!net); caifn =net_generic (net, caif_net_id); -BUG_ON (!caifn);return caifn->cfg; }EXPORT_SYMBOL (get_cfcnfg);
@@ -63,7 +62,6 @@ static struct caif_device_entry_list *caif_device_list(struct net *net)struct caif_net *caifn;BUG_ON (!net); caifn =net_generic (net, caif_net_id); -BUG_ON (!caifn);return &caifn->caifdevs; }
@@ -92,7 +90,6 @@ static struct caif_device_entry *caif_device_alloc(struct net_device *dev)struct caif_device_entry *caifd; caifdevs =caif_device_list (dev_net (dev)); -BUG_ON (!caifdevs); caifd =kzalloc (sizeof (*caifd),GFP_ATOMIC );if (!caifd)
@@ -108,7 +105,7 @@ static struct caif_device_entry *caif_get(struct net_device *dev)struct caif_device_entry_list *caifdevs =caif_device_list (dev_net (dev));struct caif_device_entry *caifd; -BUG_ON (!caifdevs); +list_for_each_entry_rcu (caifd, &caifdevs->list, list) {if (caifd->netdev == dev)return caifd;
@@ -349,7 +346,7 @@ static struct notifier_block caif_device_notifier = {static int caif_init_net (struct net *net) {struct caif_net *caifn =net_generic (net, caif_net_id); -BUG_ON (!caifn); +INIT_LIST_HEAD (&caifn->caifdevs.list);mutex_init (&caifn->caifdevs.lock);
@@ -414,7 +411,7 @@ static int __init caif_device_init(void) {int result; - result =register_pernet_device (&caif_net_ops); + result =register_pernet_subsys (&caif_net_ops);if (result)return result;
@@ -427,7 +424,7 @@ static int __init caif_device_init(void) static void __exit caif_device_exit(void) { -unregister_pernet_device (&caif_net_ops); +unregister_pernet_subsys (&caif_net_ops);unregister_netdevice_notifier (&caif_device_notifier);dev_remove_pack (&caif_packet_type); }
net/caif/cfcnfg.c +0 -1
@@ -313,7 +313,6 @@ int caif_connect_client(struct net *net, struct caif_connect_request *conn_req,int err;struct cfctrl_link_param param;struct cfcnfg *cfg =get_cfcnfg (net); -caif_assert (cfg !=NULL );rcu_read_lock (); err =caif_connect_req_to_link_param (cfg, conn_req, ¶m);
net/core/net_namespace.c +16 -15
@@ -29,6 +29,20 @@ EXPORT_SYMBOL(init_net);#define INITIAL_NET_GEN_PTRS 13/* +1 for len +2 for rcu_head */ +static unsigned int max_gen_ptrs =INITIAL_NET_GEN_PTRS ; + +static struct net_generic *net_alloc_generic (void ) +{ +struct net_generic *ng; + size_t generic_size = offsetof(struct net_generic, ptr[max_gen_ptrs]); + + ng =kzalloc (generic_size,GFP_KERNEL ); +if (ng) + ng->len = max_gen_ptrs; + +return ng; +} +static int net_assign_generic (struct net *net,int id,void *data) {struct net_generic *ng, *old_ng;
@@ -42,8 +56,7 @@ static int net_assign_generic(struct net *net, int id, void *data)if (old_ng->len >= id) goto assign; - ng =kzalloc (sizeof (struct net_generic ) + - id *sizeof (void *),GFP_KERNEL ); + ng =net_alloc_generic ();if (ng ==NULL )return -ENOMEM ;
@@ -58,7 +71,6 @@ static int net_assign_generic(struct net *net, int id, void *data)* the old copy for kfree after a grace period. */ - ng->len = id;memcpy (&ng->ptr, &old_ng->ptr, old_ng->len *sizeof (void *));rcu_assign_pointer (net->gen, ng);
@@ -159,18 +171,6 @@ out_undo: goto out; } -static struct net_generic *net_alloc_generic (void ) -{ -struct net_generic *ng; -size_t generic_size =sizeof (struct net_generic ) + -INITIAL_NET_GEN_PTRS *sizeof (void *); - - ng =kzalloc (generic_size,GFP_KERNEL ); -if (ng) - ng->len =INITIAL_NET_GEN_PTRS ; - -return ng; -}#ifdef CONFIG_NET_NS static struct kmem_cache *net_cachep;
@@ -481,6 +481,7 @@ again: }return error; } + max_gen_ptrs = max_t(unsigned int, max_gen_ptrs, *ops->id); } error =__register_pernet_operations (list, ops);if (error) {
net/ipv4/ah4.c +0 -2
@@ -369,8 +369,6 @@ static int ah_input(struct xfrm_state *x, struct sk_buff *skb)if (err == -EINPROGRESS ) goto out; -if (err == -EBUSY ) - err =NET_XMIT_DROP ; goto out_free; }
net/ipv4/tcp_ipv4.c +1 -1
@@ -630,7 +630,7 @@ static void tcp_v4_send_reset(struct sock *sk, struct sk_buff *skb) arg.iov[0 ].iov_len =sizeof (rep.th);#ifdef CONFIG_TCP_MD5SIG - key = sk ?tcp_v4_md5_do_lookup (sk,ip_hdr (skb)->daddr) :NULL ; + key = sk ?tcp_v4_md5_do_lookup (sk,ip_hdr (skb)->saddr) :NULL ;if (key) { rep.opt[0] = htonl((TCPOPT_NOP << 24) | (TCPOPT_NOP << 16) |
net/ipv4/tcp_output.c +2 -4
@@ -1134,11 +1134,9 @@ int tcp_trim_head(struct sock *sk, struct sk_buff *skb, u32 len)sk_mem_uncharge (sk, len);sock_set_flag (sk,SOCK_QUEUE_SHRUNK ); -/* Any change of skb->len requires recalculation of tso -* factor and mss. -*/ +/* Any change of skb->len requires recalculation of tso factor. */ if (tcp_skb_pcount (skb) >1 ) -tcp_set_skb_tso_segs (sk, skb,tcp_current_mss (sk)); +tcp_set_skb_tso_segs (sk, skb,tcp_skb_mss (skb));return 0 ; }
net/ipv6/ah6.c +0 -2
@@ -581,8 +581,6 @@ static int ah6_input(struct xfrm_state *x, struct sk_buff *skb)if (err == -EINPROGRESS ) goto out; -if (err == -EBUSY ) - err =NET_XMIT_DROP ; goto out_free; }
net/ipv6/tcp_ipv6.c +1 -1
@@ -1096,7 +1096,7 @@ static void tcp_v6_send_reset(struct sock *sk, struct sk_buff *skb)#ifdef CONFIG_TCP_MD5SIG if (sk) - key =tcp_v6_md5_do_lookup (sk, &ipv6_hdr (skb)->daddr); + key =tcp_v6_md5_do_lookup (sk, &ipv6_hdr (skb)->saddr);#endif if (th->ack)
net/l2tp/l2tp_ip.c +0 -5
@@ -393,11 +393,6 @@ static int l2tp_ip_backlog_recv(struct sock *sk, struct sk_buff *skb) {int rc; -if (!xfrm4_policy_check (sk,XFRM_POLICY_IN , skb)) - goto drop; - -nf_reset (skb); -/* Charge it to the socket, dropping if the queue is full. */ rc =sock_queue_rcv_skb (sk, skb);if (rc <0 )
net/rds/af_rds.c +8 -12
@@ -68,7 +68,6 @@ static int rds_release(struct socket *sock) {struct sock *sk = sock->sk;struct rds_sock *rs; -unsigned long flags;if (!sk) goto out;
@@ -94,10 +93,10 @@ static int rds_release(struct socket *sock)rds_rdma_drop_keys (rs);rds_notify_queue_get (rs,NULL ); -spin_lock_irqsave (&rds_sock_lock, flags); +spin_lock_bh (&rds_sock_lock);list_del_init (&rs->rs_item); rds_sock_count--; -spin_unlock_irqrestore (&rds_sock_lock, flags); +spin_unlock_bh (&rds_sock_lock);rds_trans_put (rs->rs_transport);
@@ -409,7 +408,6 @@ static const struct proto_ops rds_proto_ops = {static int __rds_create (struct socket *sock,struct sock *sk,int protocol) { -unsigned long flags;struct rds_sock *rs;sock_init_data (sock, sk);
@@ -426,10 +424,10 @@ static int __rds_create(struct socket *sock, struct sock *sk, int protocol)spin_lock_init (&rs->rs_rdma_lock); rs->rs_rdma_keys =RB_ROOT ; -spin_lock_irqsave (&rds_sock_lock, flags); +spin_lock_bh (&rds_sock_lock);list_add_tail (&rs->rs_item, &rds_sock_list); rds_sock_count++; -spin_unlock_irqrestore (&rds_sock_lock, flags); +spin_unlock_bh (&rds_sock_lock);return 0 ; }
@@ -471,12 +469,11 @@ static void rds_sock_inc_info(struct socket *sock, unsigned int len, {struct rds_sock *rs;struct rds_incoming *inc; -unsigned long flags;unsigned int total =0 ; len /=sizeof (struct rds_info_message ); -spin_lock_irqsave (&rds_sock_lock, flags); +spin_lock_bh (&rds_sock_lock);list_for_each_entry (rs, &rds_sock_list, rs_item) {read_lock (&rs->rs_recv_lock);
@@ -492,7 +489,7 @@ static void rds_sock_inc_info(struct socket *sock, unsigned int len,read_unlock (&rs->rs_recv_lock); } -spin_unlock_irqrestore (&rds_sock_lock, flags); +spin_unlock_bh (&rds_sock_lock); lens->nr = total; lens->each =sizeof (struct rds_info_message );
@@ -504,11 +501,10 @@ static void rds_sock_info(struct socket *sock, unsigned int len, {struct rds_info_socket sinfo;struct rds_sock *rs; -unsigned long flags; len /=sizeof (struct rds_info_socket ); -spin_lock_irqsave (&rds_sock_lock, flags); +spin_lock_bh (&rds_sock_lock);if (len < rds_sock_count) goto out;
@@ -529,7 +525,7 @@ out: lens->nr = rds_sock_count; lens->each =sizeof (struct rds_info_socket ); -spin_unlock_irqrestore (&rds_sock_lock, flags); +spin_unlock_bh (&rds_sock_lock); }static void rds_exit (void )
sound/pci/hda/patch_realtek.c +11 -0
@@ -16419,6 +16419,7 @@ static const struct alc_config_preset alc861_presets[] = {/* Pin config fixes */ enum {PINFIX_FSC_AMILO_PI1505 , +PINFIX_ASUS_A6RP , };static const struct alc_fixup alc861_fixups[] = {
@@ -16430,9 +16431,19 @@ static const struct alc_fixup alc861_fixups[] = { { } } }, + [PINFIX_ASUS_A6RP ] = { + .type =ALC_FIXUP_VERBS , + .v.verbs = (const struct hda_verb []) { +/* node 0x0f VREF seems controlling the master output */ + {0x0f ,AC_VERB_SET_PIN_WIDGET_CONTROL ,PIN_VREF50 }, + { } + }, + }, };static const struct snd_pci_quirk alc861_fixup_tbl[] = { +SND_PCI_QUIRK (0x1043 ,0x1393 ,"ASUS A6Rp" ,PINFIX_ASUS_A6RP ), +SND_PCI_QUIRK (0x1584 ,0x2b01 ,"Haier W18" ,PINFIX_ASUS_A6RP ),SND_PCI_QUIRK (0x1734 ,0x10c7 ,"FSC Amilo Pi1505" ,PINFIX_FSC_AMILO_PI1505 ), {} };
sound/pci/hda/patch_sigmatel.c +5 -3
@@ -4162,13 +4162,15 @@ static int enable_pin_detect(struct hda_codec *codec, hda_nid_t nid,return 1 ; } -static int is_nid_hp_pin (struct auto_pin_cfg *cfg,hda_nid_t nid) +static int is_nid_out_jack_pin (struct auto_pin_cfg *cfg,hda_nid_t nid) {int i;for (i =0 ; i < cfg->hp_outs; i++)if (cfg->hp_pins[i] == nid)return 1 ;/* nid is a HP-Out */ - +for (i =0 ; i < cfg->line_outs; i++) +if (cfg->line_out_pins[i] == nid) +return 1 ;/* nid is a line-Out */ return 0 ;/* nid is not a HP-Out */ };
@@ -4354,7 +4356,7 @@ static int stac92xx_init(struct hda_codec *codec)continue ; } -if (is_nid_hp_pin (cfg, nid)) +if (is_nid_out_jack_pin (cfg, nid))continue ;/* already has an unsol event */ pinctl = snd_hda_codec_read(codec, nid, 0,
Greg KH
maintainerQuoted 1 line · Greg KH
I'm announcing the release of the 3.0.19 kernel.
I forgot to include the shortlog for this release, here it is.
Alan Cox (1):
USB: ftdi_sio: Add more identifiers
Alex Deucher (1):
drm/radeon/kms: Add an MSI quirk for Dell RS690
Alexey Dobriyan (2):
crypto: sha512 - make it work, undo percpu message schedule
crypto: sha512 - reduce stack usage to safe number
Andiry Xu (1):
xHCI: Cleanup isoc transfer ring when TD length mismatch found
Andreas Herrmann (1):
x86/microcode_amd: Add support for CPU family specific container files
Bj�rn Mork (5):
USB: cdc-wdm: updating desc->length must be protected by spin_lock
USB: cdc-wdm: use two mutexes to allow simultaneous read and write
USB: cdc-wdm: call wake_up_all to allow driver to shutdown on device removal
USB: cdc-wdm: better allocate a buffer that is at least as big as we tell the USB core
USB: cdc-wdm: Avoid hanging on interface with no USB_CDC_DMM_TYPE
Dan Williams (1):
qcaux: add more Pantech UML190 and UML290 ports
Dave Chinner (1):
xfs: fix endian conversion issue in discard code
David S. Miller (1):
rds: Make rds_sock_lock BH rather than IRQ safe.
Eric Dumazet (2):
netns: fix net_alloc_generic()
net: bpf_jit: fix divide by 0 generation
Eric W. Biederman (3):
usb: io_ti: Make edge_remove_sysfs_attrs the port_remove method.
netns: Fail conspicously if someone uses net_generic at an inappropriate time. net caif: Register properly as a pernet subsystem.
Greg Kroah-Hartman (1):
Linux 3.0.19
Guenter Roeck (1):
hwmon: (w83627ehf) Disable setting DC mode for pwm2, pwm3 on NCT6776F
Harrison Metzger (1):
USB: usbsevseg: fix max length
James Chapman (1):
l2tp: l2tp_ip - fix possible oops on packet receive
Jan Kara (1):
xfs: Fix missing xfs_iunlock() on error recovery path in xfs_readlink()
Jean Delvare (1):
hwmon: (f71805f) Fix clamping of temperature limits
Jiri Bohac (1):
bonding: fix enslaving in alb mode when link down
Jiri Olsa (1):
ftrace: Fix unregister ftrace_ops accounting
Jiri Slaby (1):
TTY: fix UV serial console regression
Johan Hovold (8):
USB: ftdi_sio: fix TIOCSSERIAL baud_base handling
USB: ftdi_sio: fix initial baud rate
USB: cp210x: call generic open last in open
USB: cp210x: do not map baud rates to B0
USB: cp210x: fix up set_termios variables
USB: cp210x: clean up, refactor and document speed handling
USB: cp210x: initialise baud rate at open
USB: cp210x: allow more baud rates above 1MbaudJonathan Nieder (1):
cap_syslog: don't use WARN_ONCE for CAP_SYS_ADMIN deprecation warning
Julia Lawall (1):
drivers/usb/host/ehci-fsl.c: add missing iounmap
Kentaro Matsuyama (1):
USB: option: Add LG docomo L-02C
Lucas Kannebley Tavares (1):
jsm: Fixed EEH recovery error
Neal Cardwell (1):
tcp: fix tcp_trim_head() to adjust segment count with skb MSS
Nick Bowler (1):
ah: Don't return NET_XMIT_DROP on input.
Paulo Zanoni (1):
drm/i915/sdvo: always set positive sync polarity
Peter Korsgaard (1):
USB: ftdi_sio: add PID for TI XDS100v2 / BeagleBone A3
Peter Naulls (1):
USB: serial: ftdi additional IDs
Preston Fick (1):
USB: cp210x: fix CP2104 baudrate usage
Rabin Vincent (1):
serial: amba-pl011: lock console writes against interrupts
Renato Caldas (1):
USB: serial: CP210x: Added USB-ID for the Link Instruments MSO-19
Russ Anderson (1):
x86/uv: Fix uv_gpa_to_soc_phys_ram() shift
Ryan Mallon (1):
vmwgfx: Fix assignment in vmw_framebuffer_create_handle
Sarah Sharp (1):
xhci: Fix USB 3.0 device restart on resume.
Srinidhi KASAGAR (1):
mach-ux500: enable ARM errata 764369
Steven Rostedt (2):
ftrace: Balance records when updating the hash
ftrace: Update filter when tracing enabled in set_ftrace_filter()
Takashi Iwai (3):
ALSA: hda - Fix silent outputs from docking-station jacks of Dell laptops
ALSA: hda - Fix silent output on ASUS A6Rp
ALSA: hda - Fix silent output on Haier W18 laptop
Thomas Hellstrom (1):
drm: Fix authentication kernel crash
Tim Gardner (1):
ecryptfs: Improve metadata read failure logging
Tyler Hicks (4):
eCryptfs: Sanitize write counts of /dev/ecryptfs
eCryptfs: Make truncate path killable
eCryptfs: Check inode changes in setattr
eCryptfs: Fix oops when printing debug info in extent crypto functions
Vivien Didelot (1):
hwmon: (sht15) fix bad error code
Will Deacon (1):
ARM: 7296/1: proc-v7.S: remove HARVARD_CACHE preprocessor guards
shawnlu (1):
tcp: md5: using remote adress for md5 lookup in rst packet