Linux 3.4.89
Greg KH
maintainerI'm announcing the release of the 3.4.89 kernel.
All users of the 3.4 kernel series must upgrade.
The updated 3.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.4.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/include/asm/div64.h | 2 arch/arm/kernel/machine_kexec.c | 7 ++ arch/arm/mach-omap2/irq.c | 8 ++ arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 4 - arch/sh/kernel/dumpstack.c | 2 arch/x86/kernel/ldt.c | 11 +++ drivers/infiniband/hw/ehca/ehca_cq.c | 1 drivers/infiniband/hw/ipath/ipath_diag.c | 66 +++++++----------- drivers/infiniband/hw/mthca/mthca_provider.c | 1 drivers/infiniband/hw/nes/nes_verbs.c | 2 drivers/infiniband/ulp/srpt/ib_srpt.c | 16 ++-- drivers/mfd/max8925-i2c.c | 9 ++ drivers/mfd/max8997.c | 18 +++++ drivers/mfd/max8998.c | 4 + drivers/scsi/arcmsr/arcmsr_hba.c | 7 -- drivers/staging/rtl8712/rtl871x_recv.c | 13 +-- drivers/staging/serqt_usb2/serqt_usb2.c | 2 drivers/target/iscsi/iscsi_target.c | 4 - drivers/target/tcm_fc/tfc_sess.c | 1 drivers/tty/hvc/hvc_console.c | 6 + drivers/usb/core/driver.c | 94 ++++++++++++++++----------- drivers/usb/core/hcd-pci.c | 2 drivers/usb/core/hub.c | 5 - drivers/usb/core/usb.h | 2 drivers/usb/dwc3/core.h | 6 - drivers/usb/host/xhci-pci.c | 4 - drivers/usb/host/xhci.c | 6 - drivers/usb/musb/musb_gadget.c | 22 +++++- drivers/usb/serial/pl2303.c | 3 drivers/usb/serial/pl2303.h | 5 + drivers/w1/w1_netlink.c | 25 +++---- fs/ext4/file.c | 2 fs/nfsd/nfs4proc.c | 9 ++ fs/nfsd/nfs4xdr.c | 5 + fs/nfsd/vfs.c | 9 ++ fs/ocfs2/buffer_head_io.c | 2 fs/ocfs2/dlm/dlmrecovery.c | 29 ++++++-- fs/reiserfs/dir.c | 6 + kernel/sysctl.c | 6 + mm/hugetlb.c | 1 sound/pci/hda/patch_realtek.c | 1 sound/pci/ice1712/ice1712.c | 15 ++-- sound/soc/codecs/cs42l73.c | 6 - 44 files changed, 295 insertions(+), 156 deletions(-)
Aaron Sanders (1):
USB: pl2303: add ids for Hewlett-Packard HP POS pole displays
Alan Stern (2):
USB: fix crash during hotplug of PCI USB controller card
USB: unbind all interfaces before rebinding any
Andy Grover (1):
target/tcm_fc: Fix use-after-free of ft_tpg
Brian Austin (1):
ASoC: cs42l73: Fix mask bits for SOC_VALUE_ENUM_SINGLE
Dan Carpenter (1):
SCSI: arcmsr: upper 32 of dma address lost
David Cohen (1):
usb/xhci: fix compilation warning when !CONFIG_PCI && !CONFIG_PM
David Fries (1):
w1: fix w1_send_slave dropping a slave id
Dennis Dalessandro (1):
IB/ipath: Fix potential buffer overrun in sending diag packet routine
Greg Kroah-Hartman (1):
Linux 3.4.89
H. Peter Anvin (1):
x86-64, modify_ldt: Ban 16-bit segments on 64-bit kernels
Himangi Saraogi (1):
staging:serqt_usb2: Fix sparse warning restricted __le16 degrades to integer
Huang Rui (1):
usb: dwc3: fix wrong bit mask in dwc3_event_devt
Igor Gnatenko (1):
xhci: extend quirk for Renesas cards
J. Bruce Fields (5):
nfsd4: session needs room for following op to error out
nfsd4: buffer-length check for SUPPATTR_EXCLCREAT
nfsd4: fix test_stateid error reply encoding
nfsd: notify_change needs elevated write count
nfsd4: fix setclientid encode size
Jeff Mahoney (1):
reiserfs: fix race in readdir
Junxiao Bi (2):
ocfs2: dlm: fix lock migration crash
ocfs2: dlm: fix recovery hung
Krzysztof Kozlowski (3):
mfd: max8925: Fix possible NULL pointer dereference on i2c_new_dummy error
mfd: max8998: Fix possible NULL pointer dereference on i2c_new_dummy error
mfd: max8997: Fix possible NULL pointer dereference on i2c_new_dummy error
Larry Finger (1):
staging: r8712u: Fix case where ethtype was never obtained and always be checked against 0
Liu Hua (2):
ARM: 8030/1: ARM : kdump : add arch_crash_save_vmcoreinfo
hung_task: check the value of "sysctl_hung_task_timeout_sec"
Matt Fleming (1):
sh: fix format string bug in stack tracer
Mike Marciniszyn (1):
ib_srpt: Use correct ib_sg_dma primitives
Mizuma, Masayoshi (1):
mm: hugetlb: fix softlockup when a large number of hugepages are freed.
Nicholas Bellinger (1):
iscsi-target: Fix ERL=2 ASYNC_EVENT connection pointer bug
Paul Gortmaker (1):
hvc: ensure hvc_init is only ever called once in hvc_console.c
Roger Quadros (1):
ARM: OMAP3: hwmod data: Correct clock domains for USB modules
Stefan Sørensen (1):
ARM: OMAP2+: INTC: Acknowledge stuck active interrupts
Takashi Iwai (1):
ALSA: ice1712: Fix boundary checks in PCM pointer ops
Theodore Ts'o (1):
ext4: use i_size_read in ext4_unaligned_aio()
W. Trevor King (1):
ALSA: hda - Enable beep for ASUS 1015E
Xiangyu Lu (1):
ARM: 8027/1: fix do_div() bug in big-endian systems
Yann Droneaud (3):
IB/nes: Return an error on ib_copy_from_udata() failure instead of NULL IB/mthca: Return an error on ib_copy_to_udata() failure IB/ehca: Returns an error on ib_copy_to_udata() failure
alex chen (1):
ocfs2: do not put bh when buffer_uptodate failed
supriya karanth (1):
usb: musb: set TXMAXP and AUTOSET for full speed bulk in device mode
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 4 -SUBLEVEL = 88 +SUBLEVEL = 89 EXTRAVERSION = NAME = Saber-toothed Squirrel
arch/arm/include/asm/div64.h +1 -1
@@ -156,7 +156,7 @@/* Select the best insn combination to perform the */ \/* actual __m * __n / (__p << 64) operation. */ \if (!__c) { \ - asm ("umull %Q0, %R0, %1, %Q2\n\t" \ + asm ("umull %Q0, %R0, %Q1, %Q2\n\t" \"mov %Q0, #0" \ :"=&r" (__res) \ : "r" (__m), "r" (__n) \
arch/arm/kernel/machine_kexec.c +7 -0
@@ -138,3 +138,10 @@ void machine_kexec(struct kimage *image)soft_restart (reboot_code_buffer_phys); } + +void arch_crash_save_vmcoreinfo (void ) +{ +#ifdef CONFIG_ARM_LPAE +VMCOREINFO_CONFIG (ARM_LPAE ); +#endif +}
arch/arm/mach-omap2/irq.c +8 -0
@@ -220,6 +220,7 @@ void __init ti81xx_init_irq(void)static inline void omap_intc_handle_irq (void __iomem *base_addr,struct pt_regs *regs) {u32 irqnr; +int handled_irq =0 ; do { irqnr = readl_relaxed(base_addr + 0x98);
@@ -247,8 +248,15 @@ out:if (irqnr) { irqnr =irq_find_mapping (domain, irqnr);handle_IRQ (irqnr, regs); + handled_irq =1 ; } }while (irqnr); + +/* If an irq is masked or deasserted while active, we will +* keep ending up here with no irq handled. So remove it from +* the INTC with an ack.*/ +if (!handled_irq) +omap_ack_irq (NULL ); } asmlinkage void __exception_irq_entry omap2_intc_handle_irq(struct pt_regs *regs)
arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +2 -2
@@ -3408,7 +3408,7 @@ static struct omap_hwmod_irq_info omap3xxx_usb_host_hs_irqs[] = {static struct omap_hwmod omap3xxx_usb_host_hs_hwmod = { .name ="usb_host_hs" , .class = &omap3xxx_usb_host_hs_hwmod_class, - .clkdm_name ="l3_init_clkdm" , + .clkdm_name ="usbhost_clkdm" , .mpu_irqs = omap3xxx_usb_host_hs_irqs, .main_clk ="usbhost_48m_fck" , .prcm = {
@@ -3519,7 +3519,7 @@ static struct omap_hwmod_ocp_if *omap3xxx_usb_tll_hs_slaves[] = {static struct omap_hwmod omap3xxx_usb_tll_hs_hwmod = { .name ="usb_tll_hs" , .class = &omap3xxx_usb_tll_hs_hwmod_class, - .clkdm_name ="l3_init_clkdm" , + .clkdm_name ="core_l4_clkdm" , .mpu_irqs = omap3xxx_usb_tll_hs_irqs, .main_clk ="usbtll_fck" , .prcm = {
arch/sh/kernel/dumpstack.c +1 -1
@@ -80,7 +80,7 @@ static int print_trace_stack(void *data, char *name)*/ static void print_trace_address (void *data,unsigned long addr,int reliable) { -printk (data); +printk ("%s" , (char *)data);printk_address (addr, reliable); }
arch/x86/kernel/ldt.c +11 -0
@@ -229,6 +229,17 @@ static int write_ldt(void __user *ptr, unsigned long bytecount, int oldmode) } } +/* +* On x86-64 we do not support 16-bit segments due to +* IRET leaking the high bits of the kernel stack address. +*/ +#ifdef CONFIG_X86_64 +if (!ldt_info.seg_32bit) { + error = -EINVAL ; + goto out_unlock; + } +#endif +fill_ldt (&ldt, &ldt_info);if (oldmode) ldt.avl =0 ;
drivers/infiniband/hw/ehca/ehca_cq.c +1 -0
@@ -296,6 +296,7 @@ struct ib_cq *ehca_create_cq(struct ib_device *device, int cqe, int comp_vector, (my_cq->galpas.user.fw_handle & (PAGE_SIZE -1 ));if (ib_copy_to_udata (udata, &resp,sizeof (resp))) {ehca_err (device,"Copy to udata failed." ); + cq =ERR_PTR (-EFAULT ); goto create_cq_exit4; } }
drivers/infiniband/hw/ipath/ipath_diag.c +25 -41
110 lines not on this page · raw message
drivers/infiniband/hw/mthca/mthca_provider.c +1 -0
@@ -695,6 +695,7 @@ static struct ib_cq *mthca_create_cq(struct ib_device *ibdev, int entries,if (context &&ib_copy_to_udata (udata, &cq->cqn,sizeof (__u32))) {mthca_free_cq (to_mdev (ibdev), cq); + err = -EFAULT ; goto err_free; }
drivers/infiniband/hw/nes/nes_verbs.c +1 -1
@@ -1183,7 +1183,7 @@ static struct ib_qp *nes_create_qp(struct ib_pd *ibpd,nes_free_resource (nesadapter, nesadapter->allocated_qps, qp_num);kfree (nesqp->allocated_buffer);nes_debug (NES_DBG_QP ,"ib_copy_from_udata() Failed \n" ); -return NULL ; +return ERR_PTR (-EFAULT ); }if (req.user_wqe_buffers) { virt_wqs =1 ;
drivers/infiniband/ulp/srpt/ib_srpt.c +10 -6
@@ -1078,6 +1078,7 @@ static void srpt_unmap_sg_to_ib_sge(struct srpt_rdma_ch *ch,static int srpt_map_sg_to_ib_sge (struct srpt_rdma_ch *ch,struct srpt_send_ioctx *ioctx) { +struct ib_device *dev = ch->sport->sdev->device;struct se_cmd *cmd;struct scatterlist *sg, *sg_orig;int sg_cnt;
@@ -1125,7 +1126,7 @@ static int srpt_map_sg_to_ib_sge(struct srpt_rdma_ch *ch, db = ioctx->rbufs; tsize = cmd->data_length; - dma_len =sg_dma_len (&sg[0 ]); + dma_len =ib_sg_dma_len (dev, &sg[0 ]); riu = ioctx->rdma_ius;/*
@@ -1156,7 +1157,8 @@ static int srpt_map_sg_to_ib_sge(struct srpt_rdma_ch *ch, ++j;if (j < count) { sg =sg_next (sg); - dma_len =sg_dma_len (sg); + dma_len =ib_sg_dma_len ( + dev, sg); } } }else {
@@ -1193,8 +1195,8 @@ static int srpt_map_sg_to_ib_sge(struct srpt_rdma_ch *ch, tsize = cmd->data_length; riu = ioctx->rdma_ius; sg = sg_orig; - dma_len =sg_dma_len (&sg[0 ]); - dma_addr =sg_dma_address (&sg[0 ]); + dma_len =ib_sg_dma_len (dev, &sg[0 ]); + dma_addr =ib_sg_dma_address (dev, &sg[0 ]);/* this second loop is really mapped sg_addres to rdma_iu->ib_sge */ for (i = 0, j = 0;
@@ -1217,8 +1219,10 @@ static int srpt_map_sg_to_ib_sge(struct srpt_rdma_ch *ch, ++j;if (j < count) { sg =sg_next (sg); - dma_len =sg_dma_len (sg); - dma_addr =sg_dma_address (sg); + dma_len =ib_sg_dma_len ( + dev, sg); + dma_addr =ib_sg_dma_address ( + dev, sg); } } }else {
drivers/mfd/max8925-i2c.c +9 -0
@@ -156,9 +156,18 @@ static int __devinit max8925_probe(struct i2c_client *client,mutex_init (&chip->io_lock); chip->rtc =i2c_new_dummy (chip->i2c->adapter,RTC_I2C_ADDR ); +if (!chip->rtc) { +dev_err (chip->dev,"Failed to allocate I2C device for RTC\n" ); +return -ENODEV ; + }i2c_set_clientdata (chip->rtc, chip); chip->adc =i2c_new_dummy (chip->i2c->adapter,ADC_I2C_ADDR ); +if (!chip->adc) { +dev_err (chip->dev,"Failed to allocate I2C device for ADC\n" ); +i2c_unregister_device (chip->rtc); +return -ENODEV ; + }i2c_set_clientdata (chip->adc, chip);device_init_wakeup (&client->dev,1 );
drivers/mfd/max8997.c +18 -0
@@ -149,10 +149,26 @@ static int max8997_i2c_probe(struct i2c_client *i2c,mutex_init (&max8997->iolock); max8997->rtc =i2c_new_dummy (i2c->adapter,I2C_ADDR_RTC ); +if (!max8997->rtc) { +dev_err (max8997->dev,"Failed to allocate I2C device for RTC\n" ); +return -ENODEV ; + }i2c_set_clientdata (max8997->rtc, max8997); + max8997->haptic =i2c_new_dummy (i2c->adapter,I2C_ADDR_HAPTIC ); +if (!max8997->haptic) { +dev_err (max8997->dev,"Failed to allocate I2C device for Haptic\n" ); + ret = -ENODEV ; + goto err_i2c_haptic; + }i2c_set_clientdata (max8997->haptic, max8997); + max8997->muic =i2c_new_dummy (i2c->adapter,I2C_ADDR_MUIC ); +if (!max8997->muic) { +dev_err (max8997->dev,"Failed to allocate I2C device for MUIC\n" ); + ret = -ENODEV ; + goto err_i2c_muic; + }i2c_set_clientdata (max8997->muic, max8997);pm_runtime_set_active (max8997->dev);
@@ -179,7 +195,9 @@ static int max8997_i2c_probe(struct i2c_client *i2c, err_mfd:mfd_remove_devices (max8997->dev);i2c_unregister_device (max8997->muic); +err_i2c_muic:i2c_unregister_device (max8997->haptic); +err_i2c_haptic:i2c_unregister_device (max8997->rtc); err:kfree (max8997);
drivers/mfd/max8998.c +4 -0
@@ -152,6 +152,10 @@ static int max8998_i2c_probe(struct i2c_client *i2c,mutex_init (&max8998->iolock); max8998->rtc =i2c_new_dummy (i2c->adapter,RTC_I2C_ADDR ); +if (!max8998->rtc) { +dev_err (&i2c->dev,"Failed to allocate I2C device for RTC\n" ); +return -ENODEV ; + }i2c_set_clientdata (max8998->rtc, max8998);max8998_irq_init (max8998);
drivers/scsi/arcmsr/arcmsr_hba.c +3 -4
@@ -2500,16 +2500,15 @@ static int arcmsr_polling_ccbdone(struct AdapterControlBlock *acb,static int arcmsr_iop_confirm (struct AdapterControlBlock *acb) {uint32_t cdb_phyaddr, cdb_phyaddr_hi32; -dma_addr_t dma_coherent_handle; +/* ******************************************************************** ** here we need to tell iop 331 our freeccb.HighPart ** if freeccb.HighPart is not zero ******************************************************************** */ - dma_coherent_handle = acb->dma_coherent_handle; - cdb_phyaddr = (uint32_t )(dma_coherent_handle); - cdb_phyaddr_hi32 = (uint32_t )((cdb_phyaddr >>16 ) >>16 ); + cdb_phyaddr =lower_32_bits (acb->dma_coherent_handle); + cdb_phyaddr_hi32 =upper_32_bits (acb->dma_coherent_handle); acb->cdb_phyaddr_hi32 = cdb_phyaddr_hi32;/* ***********************************************************************
drivers/staging/rtl8712/rtl871x_recv.c +6 -7
@@ -253,7 +253,7 @@ union recv_frame *r8712_portctrl(struct _adapter *adapter,struct sta_info *psta;struct sta_priv *pstapriv;union recv_frame *prtnframe; -u16 ether_type =0 ; +u16 ether_type; pstapriv = &adapter->stapriv; ptr =get_recvframe_data (precv_frame);
@@ -262,15 +262,14 @@ union recv_frame *r8712_portctrl(struct _adapter *adapter, psta =r8712_get_stainfo (pstapriv, psta_addr); auth_alg = adapter->securitypriv.AuthAlgrthm;if (auth_alg ==2 ) { +/* get ether_type */ + ptr = ptr + pfhdr->attrib.hdrlen +LLC_HEADER_SIZE ; +memcpy (ðer_type, ptr,2 ); + ether_type =ntohs ((unsigned short )ether_type); +if ((psta !=NULL ) && (psta->ieee8021x_blocked)) {/* blocked * only accept EAPOL frame */ - prtnframe = precv_frame; -/*get ether_type */ - ptr = ptr + pfhdr->attrib.hdrlen + - pfhdr->attrib.iv_len +LLC_HEADER_SIZE ; -memcpy (ðer_type, ptr,2 ); - ether_type =ntohs ((unsigned short )ether_type);if (ether_type ==0x888e ) prtnframe = precv_frame;else {
drivers/staging/serqt_usb2/serqt_usb2.c +1 -1
@@ -771,7 +771,7 @@ static int qt_startup(struct usb_serial *serial) goto startup_error; } -switch (serial->dev->descriptor.idProduct) { +switch (le16_to_cpu (serial->dev->descriptor.idProduct)) {case QUATECH_DSU100 :case QUATECH_QSU100 :case QUATECH_ESU100A :
drivers/target/iscsi/iscsi_target.c +3 -1
@@ -2352,6 +2352,7 @@ static void iscsit_build_conn_drop_async_message(struct iscsi_conn *conn) {struct iscsi_cmd *cmd;struct iscsi_conn *conn_p; +bool found = false;/* * Only send a Asynchronous Message on connections whos network
@@ -2360,11 +2361,12 @@ static void iscsit_build_conn_drop_async_message(struct iscsi_conn *conn)list_for_each_entry (conn_p, &conn->sess->sess_conn_list, conn_list) {if (conn_p->conn_state ==TARG_CONN_STATE_LOGGED_IN ) {iscsit_inc_conn_usage_count (conn_p); + found = true;break ; } } -if (!conn_p) +if (!found)return ; cmd =iscsit_allocate_cmd (conn_p,GFP_ATOMIC );
drivers/target/tcm_fc/tfc_sess.c +1 -0
@@ -69,6 +69,7 @@ static struct ft_tport *ft_tport_create(struct fc_lport *lport)if (tport) { tport->tpg = tpg; + tpg->tport = tport;return tport; }
drivers/tty/hvc/hvc_console.c +5 -1
@@ -31,6 +31,7 @@#include <linux/list.h> #include <linux/module.h> #include <linux/major.h> +#include <linux/atomic.h> #include <linux/sysrq.h> #include <linux/tty.h> #include <linux/tty_flip.h>
@@ -70,6 +71,9 @@ static struct task_struct *hvc_task;/* Picks up late kicks after list walk but before schedule() */ static int hvc_kicked; +/* hvc_init is triggered from hvc_alloc, i.e. only when actually used */ +static atomic_t hvc_needs_init__read_mostly =ATOMIC_INIT (-1 ); +static int hvc_init (void );#ifdef CONFIG_MAGIC_SYSRQ
@@ -825,7 +829,7 @@ struct hvc_struct *hvc_alloc(uint32_t vtermno, int data,int i;/* We wait until a driver actually comes along */ -if (!hvc_driver) { +if (atomic_inc_not_zero (&hvc_needs_init)) {int err =hvc_init ();if (err)return ERR_PTR (err);
drivers/usb/core/driver.c +56 -38
162 lines not on this page · raw message
drivers/usb/core/hcd-pci.c +1 -1
@@ -71,7 +71,7 @@ static void companion_common(struct pci_dev *pdev, struct usb_hcd *hcd,continue ; companion_hcd =pci_get_drvdata (companion); -if (!companion_hcd) +if (!companion_hcd || !companion_hcd->self.root_hub)continue ;/* For SET_HS_COMPANION, store a pointer to the EHCI bus in
drivers/usb/core/hub.c +3 -2
@@ -4313,10 +4313,11 @@ int usb_reset_device(struct usb_device *udev)else if (cintf->condition ==USB_INTERFACE_BOUND ) rebind =1 ; +if (rebind) + cintf->needs_binding =1 ; } -if (ret ==0 && rebind) -usb_rebind_intf (cintf); } +usb_unbind_and_rebind_marked_interfaces (udev); }usb_autosuspend_device (udev);
drivers/usb/core/usb.h +1 -1
@@ -42,7 +42,7 @@ extern int usb_match_one_id_intf(struct usb_device *dev,extern int usb_match_device (struct usb_device *dev,const struct usb_device_id *id);extern void usb_forced_unbind_intf (struct usb_interface *intf); -extern void usb_rebind_intf (struct usb_interface *intf); +extern void usb_unbind_and_rebind_marked_interfaces (struct usb_device *udev);extern int usb_hub_claim_port (struct usb_device *hdev,unsigned port,void *owner);
drivers/usb/dwc3/core.h +3 -3
@@ -719,15 +719,15 @@ struct dwc3_event_depevt {* 12 - VndrDevTstRcved * @reserved15_12: Reserved, not used * @event_info: Information about this event -* @reserved31_24: Reserved, not used +* @reserved31_25: Reserved, not used */ struct dwc3_event_devt {u32 one_bit:1 ;u32 device_event:7 ;u32 type:4 ;u32 reserved15_12:4 ; -u32 event_info:8 ; -u32 reserved31_24:8 ; +u32 event_info:9 ; +u32 reserved31_25:7 ; } __packed;/**
drivers/usb/host/xhci-pci.c +1 -3
@@ -135,9 +135,7 @@ static void xhci_pci_quirks(struct device *dev, struct xhci_hcd *xhci) xhci->quirks |=XHCI_TRUST_TX_LENGTH ; }if (pdev->vendor ==PCI_VENDOR_ID_RENESAS && - pdev->device ==0x0015 && - pdev->subsystem_vendor ==PCI_VENDOR_ID_SAMSUNG && - pdev->subsystem_device ==0xc0cd ) + pdev->device ==0x0015 ) xhci->quirks |=XHCI_RESET_ON_RESUME ;if (pdev->vendor ==PCI_VENDOR_ID_VIA ) xhci->quirks |=XHCI_RESET_ON_RESUME ;
drivers/usb/host/xhci.c +3 -3
@@ -394,16 +394,16 @@ static int xhci_try_enable_msi(struct usb_hcd *hcd)#else -static int xhci_try_enable_msi (struct usb_hcd *hcd) +static inline int xhci_try_enable_msi (struct usb_hcd *hcd) {return 0 ; } -static void xhci_cleanup_msix (struct xhci_hcd *xhci) +static inline void xhci_cleanup_msix (struct xhci_hcd *xhci) { } -static void xhci_msix_sync_irqs (struct xhci_hcd *xhci) +static inline void xhci_msix_sync_irqs (struct xhci_hcd *xhci) { }
drivers/usb/musb/musb_gadget.c +19 -3
@@ -401,7 +401,19 @@ static void txstate(struct musb *musb, struct musb_request *req) csr |= (MUSB_TXCSR_DMAENAB |MUSB_TXCSR_DMAMODE |MUSB_TXCSR_MODE ); -if (!musb_ep->hb_mult) +/* +* Enable Autoset according to table +* below +* bulk_split hb_mult Autoset_Enable +* 0 0 Yes(Normal) +* 0 >0 No(High BW ISO) +* 1 0 Yes(HS bulk) +* 1 >0 Yes(FS bulk) +*/ +if (!musb_ep->hb_mult || + (musb_ep->hb_mult && +can_bulk_split (musb, + musb_ep->type))) csr |=MUSB_TXCSR_AUTOSET ; } csr &= ~MUSB_TXCSR_P_UNDERRUN ;
@@ -1100,11 +1112,15 @@ static int musb_gadget_enable(struct usb_ep *ep,/* Set TXMAXP with the FIFO size of the endpoint * to disable double buffering mode. */ -if (musb->double_buffer_not_ok) +if (musb->double_buffer_not_ok) {musb_writew (regs,MUSB_TXMAXP , hw_ep->max_packet_sz_tx); -else + }else { +if (can_bulk_split (musb, musb_ep->type)) + musb_ep->hb_mult = (hw_ep->max_packet_sz_tx / + musb_ep->packet_sz) -1 ;musb_writew (regs,MUSB_TXMAXP , musb_ep->packet_sz | (musb_ep->hb_mult <<11 )); + } csr =MUSB_TXCSR_MODE |MUSB_TXCSR_CLRDATATOG ; if (musb_readw(regs, MUSB_TXCSR)
drivers/usb/serial/pl2303.c +3 -0
@@ -86,6 +86,9 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(YCCABLE_VENDOR_ID, YCCABLE_PRODUCT_ID) }, { USB_DEVICE(SUPERIAL_VENDOR_ID, SUPERIAL_PRODUCT_ID) }, { USB_DEVICE(HP_VENDOR_ID, HP_LD220_PRODUCT_ID) }, + { USB_DEVICE(HP_VENDOR_ID, HP_LD960_PRODUCT_ID) }, + { USB_DEVICE(HP_VENDOR_ID, HP_LCM220_PRODUCT_ID) }, + { USB_DEVICE(HP_VENDOR_ID, HP_LCM960_PRODUCT_ID) }, { USB_DEVICE(CRESSI_VENDOR_ID, CRESSI_EDY_PRODUCT_ID) }, { USB_DEVICE(ZEAGLE_VENDOR_ID, ZEAGLE_N2ITION3_PRODUCT_ID) }, { USB_DEVICE(SONY_VENDOR_ID, SONY_QN3USB_PRODUCT_ID) },
drivers/usb/serial/pl2303.h +4 -1
@@ -121,8 +121,11 @@#define SUPERIAL_VENDOR_ID 0x5372#define SUPERIAL_PRODUCT_ID 0x2303 -/* Hewlett-Packard LD220-HP POS Pole Display */ +/* Hewlett-Packard POS Pole Displays */ #define HP_VENDOR_ID 0x03f0 +#define HP_LD960_PRODUCT_ID 0x0b39 +#define HP_LCM220_PRODUCT_ID 0x3139 +#define HP_LCM960_PRODUCT_ID 0x3239#define HP_LD220_PRODUCT_ID 0x3524/* Cressi Edy (diving computer) PC interface */
drivers/w1/w1_netlink.c +13 -12
@@ -54,28 +54,29 @@ static void w1_send_slave(struct w1_master *dev, u64 rn)struct w1_netlink_msg *hdr = (struct w1_netlink_msg *)(msg +1 );struct w1_netlink_cmd *cmd = (struct w1_netlink_cmd *)(hdr +1 );int avail; +u64 *data;/* update kernel slave list */ w1_slave_found (dev, rn); avail = dev->priv_size - cmd->len; -if (avail >8 ) { -u64 *data = (void *)(cmd +1 ) + cmd->len; +if (avail <8 ) { + msg->ack++; +cn_netlink_send (msg,0 ,GFP_KERNEL ); - *data = rn; - cmd->len +=8 ; - hdr->len +=8 ; - msg->len +=8 ; -return ; + msg->len =sizeof (struct w1_netlink_msg ) + +sizeof (struct w1_netlink_cmd ); + hdr->len =sizeof (struct w1_netlink_cmd ); + cmd->len =0 ; } - msg->ack++; -cn_netlink_send (msg,0 ,GFP_KERNEL ); + data = (void *)(cmd +1 ) + cmd->len; - msg->len =sizeof (struct w1_netlink_msg ) +sizeof (struct w1_netlink_cmd ); - hdr->len =sizeof (struct w1_netlink_cmd ); - cmd->len =0 ; + *data = rn; + cmd->len +=8 ; + hdr->len +=8 ; + msg->len +=8 ; } static int w1_process_search_command(struct w1_master *dev, struct cn_msg *msg,
fs/ext4/file.c +1 -1
@@ -80,7 +80,7 @@ ext4_unaligned_aio(struct inode *inode, const struct iovec *iov,size_t count =iov_length (iov, nr_segs);loff_t final_size = pos + count; -if (pos >= inode->i_size) +if (pos >=i_size_read (inode))return 0 ;if ((pos & blockmask) || (final_size & blockmask))
fs/nfsd/nfs4proc.c +8 -1
@@ -1245,6 +1245,12 @@ nfsd4_proc_compound(struct svc_rqst *rqstp,/* If op is non-idempotent */ if (opdesc->op_flags &OP_MODIFIES_SOMETHING ) { plen = opdesc->op_rsize_bop (rqstp, op); +/* +* If there's still another operation, make sure +* we'll have space to at least encode an error: +*/ +if (resp->opcnt < args->opcnt) + plen +=COMPOUND_ERR_SLACK_SPACE ; op->status =nfsd4_check_resp_size (resp, plen); }
@@ -1412,7 +1418,8 @@ static inline u32 nfsd4_setattr_rsize(struct svc_rqst *rqstp, struct nfsd4_op *ostatic inline u32 nfsd4_setclientid_rsize (struct svc_rqst *rqstp,struct nfsd4_op *op) { -return (op_encode_hdr_size +2 +1024 ) *sizeof (__be32); +return (op_encode_hdr_size +2 +XDR_QUADLEN (NFS4_VERIFIER_SIZE )) * +sizeof (__be32); }static inline u32 nfsd4_write_rsize (struct svc_rqst *rqstp,struct nfsd4_op *op)
fs/nfsd/nfs4xdr.c +5 -0
@@ -2410,6 +2410,8 @@ out_acl:WRITE64 (stat.ino); }if (bmval2 &FATTR4_WORD2_SUPPATTR_EXCLCREAT ) { +if ((buflen -=16 ) <0 ) + goto out_resource;WRITE32 (3 );WRITE32 (NFSD_SUPPATTR_EXCLCREAT_WORD0 );WRITE32 (NFSD_SUPPATTR_EXCLCREAT_WORD1 );
@@ -3406,6 +3408,9 @@ nfsd4_encode_test_stateid(struct nfsd4_compoundres *resp, int nfserr,struct nfsd4_test_stateid_id *stateid, *next;__be32 *p; +if (nfserr) +return nfserr; +RESERVE_SPACE (4 + (4 * test_stateid->ts_num_ids)); *p++ =htonl (test_stateid->ts_num_ids);
fs/nfsd/vfs.c +9 -0
@@ -406,6 +406,7 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap,umode_t ftype =0 ;__be32 err;int host_err; +bool get_write_count;int size_change =0 ;if (iap->ia_valid & (ATTR_ATIME |ATTR_MTIME |ATTR_SIZE ))
@@ -413,10 +414,18 @@ nfsd_setattr(struct svc_rqst *rqstp, struct svc_fh *fhp, struct iattr *iap,if (iap->ia_valid &ATTR_SIZE ) ftype =S_IFREG ; +/* Callers that do fh_verify should do the fh_want_write: */ + get_write_count = !fhp->fh_dentry; +/* Get inode */ err =fh_verify (rqstp, fhp, ftype, accmode);if (err) goto out; +if (get_write_count) { + host_err =fh_want_write (fhp); +if (host_err) +return nfserrno (host_err); + } dentry = fhp->fh_dentry; inode = dentry->d_inode;
fs/ocfs2/buffer_head_io.c +0 -2
@@ -90,7 +90,6 @@ int ocfs2_write_block(struct ocfs2_super *osb, struct buffer_head *bh,* information for this bh as it's not marked locally * uptodate. */ ret = -EIO ; -put_bh (bh);mlog_errno (ret); }
@@ -420,7 +419,6 @@ int ocfs2_write_super_or_backup(struct ocfs2_super *osb,if (!buffer_uptodate (bh)) { ret = -EIO ; -put_bh (bh);mlog_errno (ret); }
fs/ocfs2/dlm/dlmrecovery.c +21 -8
@@ -540,7 +540,10 @@ master_here:/* success! see if any other nodes need recovery */ mlog (0 ,"DONE mastering recovery of %s:%u here(this=%u)!\n" , dlm->name, dlm->reco.dead_node, dlm->node_num); -dlm_reset_recovery (dlm); +spin_lock (&dlm->spinlock); +__dlm_reset_recovery (dlm); + dlm->reco.state &= ~DLM_RECO_STATE_FINALIZE ; +spin_unlock (&dlm->spinlock); }dlm_end_recovery (dlm);
@@ -698,6 +701,14 @@ static int dlm_remaster_locks(struct dlm_ctxt *dlm, u8 dead_node)if (all_nodes_done) {int ret; +/* Set this flag on recovery master to avoid +* a new recovery for another dead node start +* before the recovery is not done. That may +* cause recovery hung.*/ +spin_lock (&dlm->spinlock); + dlm->reco.state |=DLM_RECO_STATE_FINALIZE ; +spin_unlock (&dlm->spinlock); +/* all nodes are now in DLM_RECO_NODE_DATA_DONE state * just send a finalize message to everyone and * clean up */
@@ -1752,13 +1763,13 @@ static int dlm_process_recovery_data(struct dlm_ctxt *dlm, struct dlm_migratable_lockres *mres) {struct dlm_migratable_lock *ml; -struct list_head *queue; +struct list_head *queue, *iter;struct list_head *tmpq =NULL ;struct dlm_lock *newlock =NULL ;struct dlm_lockstatus *lksb =NULL ;int ret =0 ;int i, j, bad; -struct dlm_lock *lock =NULL ; +struct dlm_lock *lock;u8 from =O2NM_MAX_NODES ;unsigned int added =0 ;__be64 c;
@@ -1793,14 +1804,16 @@ static int dlm_process_recovery_data(struct dlm_ctxt *dlm,/* MIGRATION ONLY! */ BUG_ON (!(mres->flags &DLM_MRES_MIGRATION )); + lock =NULL ;spin_lock (&res->spinlock);for (j =DLM_GRANTED_LIST ; j <=DLM_BLOCKED_LIST ; j++) { tmpq =dlm_list_idx_to_ptr (res, j); -list_for_each_entry (lock, tmpq, list) { -if (lock->ml.cookie != ml->cookie) - lock =NULL ; -else +list_for_each (iter, tmpq) { + lock =list_entry (iter, + struct dlm_lock, list); +if (lock->ml.cookie == ml->cookie)break ; + lock =NULL ; }if (lock)break ;
@@ -2870,8 +2883,8 @@ int dlm_finalize_reco_handler(struct o2net_msg *msg, u32 len, void *data,BUG (); } dlm->reco.state &= ~DLM_RECO_STATE_FINALIZE ; +__dlm_reset_recovery (dlm);spin_unlock (&dlm->spinlock); -dlm_reset_recovery (dlm);dlm_kick_recovery_thread (dlm);break ;default :
fs/reiserfs/dir.c +4 -2
@@ -128,6 +128,7 @@ int reiserfs_readdir_dentry(struct dentry *dentry, void *dirent,char *d_name;off_t d_off;ino_t d_ino; +loff_t cur_pos =deh_offset (deh);if (!de_visible (deh))/* it is hidden entry */
@@ -200,8 +201,9 @@ int reiserfs_readdir_dentry(struct dentry *dentry, void *dirent,if (local_buf != small_buf) {kfree (local_buf); } -// next entry should be looked for with such offset - next_pos =deh_offset (deh) +1 ; + +/* deh_offset(deh) may be invalid now. */ + next_pos = cur_pos +1 ;if (item_moved (&tmp_ih, &path_to_entry)) { goto research;
kernel/sysctl.c +6 -0
@@ -142,6 +142,11 @@ static int min_percpu_pagelist_fract = 8;static int ngroups_max =NGROUPS_MAX ;static const int cap_last_cap =CAP_LAST_CAP ; +/*this is needed for proc_doulongvec_minmax of sysctl_hung_task_timeout_secs */ +#ifdef CONFIG_DETECT_HUNG_TASK +static unsigned long hung_task_timeout_max = (LONG_MAX /HZ ); +#endif +#ifdef CONFIG_INOTIFY_USER #include <linux/inotify.h> #endif
@@ -897,6 +902,7 @@ static struct ctl_table kern_table[] = { .maxlen = sizeof(unsigned long), .mode = 0644, .proc_handler = proc_dohung_task_timeout_secs, + .extra2 = &hung_task_timeout_max, }, { .procname = "hung_task_warnings",
mm/hugetlb.c +1 -0
@@ -1451,6 +1451,7 @@ static unsigned long set_max_huge_pages(struct hstate *h, unsigned long count,while (min_count <persistent_huge_pages (h)) {if (!free_pool_huge_page (h, nodes_allowed,0 ))break ; +cond_resched_lock (&hugetlb_lock); }while (count <persistent_huge_pages (h)) {if (!adjust_pool_surplus (h, nodes_allowed,1 ))
sound/pci/hda/patch_realtek.c +1 -0
@@ -4323,6 +4323,7 @@ static void alc_auto_init_std(struct hda_codec *codec)static const struct snd_pci_quirk beep_white_list[] = {SND_PCI_QUIRK (0x1043 ,0x103c ,"ASUS" ,1 ), +SND_PCI_QUIRK (0x1043 ,0x115d ,"ASUS" ,1 ),SND_PCI_QUIRK (0x1043 ,0x829f ,"ASUS" ,1 ),SND_PCI_QUIRK (0x1043 ,0x83ce ,"EeePC" ,1 ),SND_PCI_QUIRK (0x1043 ,0x831a ,"EeePC" ,1 ),
sound/pci/ice1712/ice1712.c +10 -5
@@ -686,9 +686,10 @@ static snd_pcm_uframes_t snd_ice1712_playback_pointer(struct snd_pcm_substream *if (!(snd_ice1712_read (ice,ICE1712_IREG_PBK_CTRL ) &1 ))return 0 ; ptr = runtime->buffer_size -inw (ice->ddma_port +4 ); + ptr =bytes_to_frames (substream->runtime, ptr);if (ptr == runtime->buffer_size) ptr =0 ; -return bytes_to_frames (substream->runtime, ptr); +return ptr; }static snd_pcm_uframes_t snd_ice1712_playback_ds_pointer (struct snd_pcm_substream *substream)
@@ -705,9 +706,10 @@ static snd_pcm_uframes_t snd_ice1712_playback_ds_pointer(struct snd_pcm_substrea addr =ICE1712_DSC_ADDR0 ; ptr =snd_ice1712_ds_read (ice, substream->number *2 , addr) - ice->playback_con_virt_addr[substream->number]; + ptr =bytes_to_frames (substream->runtime, ptr);if (ptr == substream->runtime->buffer_size) ptr =0 ; -return bytes_to_frames (substream->runtime, ptr); +return ptr; }static snd_pcm_uframes_t snd_ice1712_capture_pointer (struct snd_pcm_substream *substream)
@@ -718,9 +720,10 @@ static snd_pcm_uframes_t snd_ice1712_capture_pointer(struct snd_pcm_substream *sif (!(snd_ice1712_read (ice,ICE1712_IREG_CAP_CTRL ) &1 ))return 0 ; ptr =inl (ICEREG (ice,CONCAP_ADDR )) - ice->capture_con_virt_addr; + ptr =bytes_to_frames (substream->runtime, ptr);if (ptr == substream->runtime->buffer_size) ptr =0 ; -return bytes_to_frames (substream->runtime, ptr); +return ptr; }static const struct snd_pcm_hardware snd_ice1712_playback = {
@@ -1114,9 +1117,10 @@ static snd_pcm_uframes_t snd_ice1712_playback_pro_pointer(struct snd_pcm_substreif (!(inl (ICEMT (ice,PLAYBACK_CONTROL )) &ICE1712_PLAYBACK_START ))return 0 ; ptr = ice->playback_pro_size - (inw (ICEMT (ice,PLAYBACK_SIZE )) <<2 ); + ptr =bytes_to_frames (substream->runtime, ptr);if (ptr == substream->runtime->buffer_size) ptr =0 ; -return bytes_to_frames (substream->runtime, ptr); +return ptr; }static snd_pcm_uframes_t snd_ice1712_capture_pro_pointer (struct snd_pcm_substream *substream)
@@ -1127,9 +1131,10 @@ static snd_pcm_uframes_t snd_ice1712_capture_pro_pointer(struct snd_pcm_substreaif (!(inl (ICEMT (ice,PLAYBACK_CONTROL )) &ICE1712_CAPTURE_START_SHADOW ))return 0 ; ptr = ice->capture_pro_size - (inw (ICEMT (ice,CAPTURE_SIZE )) <<2 ); + ptr =bytes_to_frames (substream->runtime, ptr);if (ptr == substream->runtime->buffer_size) ptr =0 ; -return bytes_to_frames (substream->runtime, ptr); +return ptr; }static const struct snd_pcm_hardware snd_ice1712_playback_pro = {
sound/soc/codecs/cs42l73.c +3 -3
@@ -327,7 +327,7 @@ static const char * const cs42l73_mono_mix_texts[] = {static const unsigned int cs42l73_mono_mix_values[] = {0 ,1 ,2 };static const struct soc_enum spk_asp_enum = -SOC_VALUE_ENUM_SINGLE (CS42L73_MMIXCTL ,6 ,1 , +SOC_VALUE_ENUM_SINGLE (CS42L73_MMIXCTL ,6 ,3 ,ARRAY_SIZE (cs42l73_mono_mix_texts), cs42l73_mono_mix_texts, cs42l73_mono_mix_values);
@@ -345,7 +345,7 @@ static const struct snd_kcontrol_new spk_xsp_mixer =SOC_DAPM_ENUM ("Route" , spk_xsp_enum);static const struct soc_enum esl_asp_enum = -SOC_VALUE_ENUM_SINGLE (CS42L73_MMIXCTL ,2 ,5 , +SOC_VALUE_ENUM_SINGLE (CS42L73_MMIXCTL ,2 ,3 ,ARRAY_SIZE (cs42l73_mono_mix_texts), cs42l73_mono_mix_texts, cs42l73_mono_mix_values);
@@ -354,7 +354,7 @@ static const struct snd_kcontrol_new esl_asp_mixer =SOC_DAPM_ENUM ("Route" , esl_asp_enum);static const struct soc_enum esl_xsp_enum = -SOC_VALUE_ENUM_SINGLE (CS42L73_MMIXCTL ,0 ,7 , +SOC_VALUE_ENUM_SINGLE (CS42L73_MMIXCTL ,0 ,3 ,ARRAY_SIZE (cs42l73_mono_mix_texts), cs42l73_mono_mix_texts, cs42l73_mono_mix_values);