1. 29 1月, 2013 12 次提交
    • W
      [SCSI] csiostor: convert to use simple_open() · f07cda8f
      Wei Yongjun 提交于
      This removes an open coded simple_open() function and
      replaces file operations references to the function
      with simple_open() instead.
      Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
      Acked-by: NNaresh Kumar Inna <naresh@chelsio.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      f07cda8f
    • V
    • M
    • M
      [SCSI] qla4xxx: Fix memory corruption issue in qla4xxx_get_ep_fwdb. · 3dd4849c
      Manish Rangankar 提交于
      In qla4xxx_get_ep_fwdb(), dst_addr is of type struct sockaddr.
      We are copying sizeof(struct sockaddr_in6) bytes to dst_addr
      which is 12 bytes larger. This will cause memory corruption.
      So we change dst_addr to struct sockaddr_storage which is
      of 128 byte, large enough to hold sizeof(struct sockaddr_in6).
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NManish Rangankar <manish.rangankar@qlogic.com>
      Signed-off-by: NVikas Chaudhary <vikas.chaudhary@qlogic.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      3dd4849c
    • H
      [SCSI] qla4xxx: Allow reset in link down case · ad5da8c4
      Harish Zunjarrao 提交于
      Issue:
      Reset operation fails if port is in Link Down state
      
      Fix:
      Do not wait till HBA comes online after reset command is invoked.
      Signed-off-by: NHarish Zunjarrao <harish.zunjarrao@qlogic.com>
      Signed-off-by: NVikas Chaudhary <vikas.chaudhary@qlogic.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      ad5da8c4
    • V
      [SCSI] qla4xxx: Fix MBOX intr switching from polling to intr mode for ISP83XX · 5c19b92a
      Vikas Chaudhary 提交于
      Issue:
      Mailbox command timed out after switching from polling mode to interrupt mode.
      
      Events:-
       1. Mailbox interrupts are disabled
       2. FW generates AEN and at same time driver enables Mailbox Interrupt
       3. Driver issues new mailbox to Firmware
      
      In above case driver will not get AEN interrupts generated by FW in step #2 as
      FW generated this AEN when interrupts are disabled. During the same time
      driver enabled the mailbox interrupt, so driver will not poll for interrupt.
      Driver will never process AENs generated in step #2 and issues new mailbox to
      FW, but now FW is not able to post mailbox completion as AENs generated before
      are not processed by driver.
      
      Fix:
      Enable Mailbox / AEN interrupts before initializing FW in case of ISP83XX.
      This will make sure we process all Mailbox and AENs in interrupt mode.
      Signed-off-by: NVikas Chaudhary <vikas.chaudhary@qlogic.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      5c19b92a
    • B
      [SCSI] gdth: Remove buggy ROM handling · 8108de97
      Bjorn Helgaas 提交于
      The ROM address handling in gdth_init_pci() is useless and possibly
      dangerous.  This patch removes it.
      
      "pci_resource_start(pdev, 8)" is not well-defined.  PCI resources 0-5 are
      standard PCI BARs and 6 is the expansion ROM.  Resource 8 is either an
      SR-IOV BAR (if CONFIG_PCI_IOV=y, resources 7-12 are SR-IOV BARs) or a
      bridge window (resources 7-10).
      
      The GDT device is neither an SR-IOV device nor a bridge, so in either case
      resource 8 should be zero since struct pci_dev is allocated with kzalloc().
      
      It is illegal for a driver to write an arbitrary address to the ROM BAR
      because it has no way of knowing whether the ROM will conflict with another
      device.
      
      I think the only effect of the code being removed was to:
      
        1) Enable the ROM at 0xFEFF0000 (possibly causing a conflict with
           another device)
        2) Delay one millisecond
        3) Write zero to the ROM BAR, disabling it
      
      I doubt the delay is needed, but I left it since it seems innocuous.
      Signed-off-by: NBjorn Helgaas <bhelgaas@google.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      8108de97
    • L
      Merge tag 'md-3.8-fixes' of git://neil.brown.name/md · f94d4fe0
      Linus Torvalds 提交于
      Pull dmraid fix from NeilBrown:
       "Just one fix for md in 3.8
      
        dmraid assess redundancy and replacements slightly inaccurately which
        could lead to some degraded arrays failing to assemble."
      
      * tag 'md-3.8-fixes' of git://neil.brown.name/md:
        DM-RAID: Fix RAID10's check for sufficient redundancy
      f94d4fe0
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-fixes · 45e72af0
      Linus Torvalds 提交于
      Pull GFS2 fix from Steven Whitehouse.
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/steve/gfs2-3.0-fixes:
        GFS2: fix skip unlock condition
      45e72af0
    • L
      Merge tag 'iommu-fixes-v3.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · ae2c3d95
      Linus Torvalds 提交于
      Pull IOMMU fix from Joerg Roedel:
       "One fix for the AMD IOMMU driver to work around broken BIOSes found in
        the field.  Some BIOSes forget to enable a workaround for a hardware
        problem which might cause the IOMMU to stop working under high load
        conditions.  The fix makes sure this workaround is enabled."
      
      * tag 'iommu-fixes-v3.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
        IOMMU, AMD Family15h Model10-1Fh erratum 746 Workaround
      ae2c3d95
    • L
      Merge tag 'mfd-for-linus-3.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6 · 325a86b6
      Linus Torvalds 提交于
      Pull MFD fixes from Samuel Ortiz:
       "This is the first pull request for MFD fixes for 3.8
      
        We have some build failure fixes (twl4030, vexpress, abx500 and
        tps65910), some actual runtime oops and lockup fixes (rtsx, da9052),
        and some more hypothetical NULL pointers dereferences fixes for
        pcf50633 and max776xx.
      
        Then we also have additional rtsx fixes for a correct switch output
        voltage and clock divider correctness for rtl8411 (rtsx driver), and
        irqdomain fix for db8550-prcmu, and some more cosmetic fixes for
        arizona and wm5102."
      
      * tag 'mfd-for-linus-3.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6:
        mfd: rtsx: Fix oops when rtsx_pci_sdmmc is not probed
        mfd: wm5102: Fix definition of WM5102_MAX_REGISTER
        mfd: twl4030: Don't warn about uninitialized return code
        mfd: da9052/53 lockup fix
        mfd: rtsx: Add clock divider hook
        mmc: rtsx: Call MFD hook to switch output voltage
        mfd: rtsx: Add output voltage switch hook
        mfd: Fix compile errors and warnings when !CONFIG_AB8500_BM
        mfd: vexpress: Export global functions to fix build error
        mfd: arizona: Check errors from regcache_sync()
        mfd: tc3589x: Use simple irqdomain
        mfd: pcf50633: Init pcf->dev before using it
        mfd: max77693: Init max77693->dev before using it
        mfd: max77686: Init max77686->dev before using it
        mfd: db8500-prcmu: Fix irqdomain usage
        mfd: tps65910: Select REGMAP_IRQ in Kconfig to fix build error
        mfd: arizona: Disable control interface reporting for WM5102 and WM5110
      325a86b6
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · 22f83798
      Linus Torvalds 提交于
      Pull networking updates from David Miller:
       "Much more accumulated than I would have liked due to an unexpected
        bout with a nasty flu:
      
         1) AH and ESP input don't set ECN field correctly because the
            transport head of the SKB isn't set correctly, fix from Li
            RongQing.
      
         2) If netfilter conntrack zones are disabled, we can return an
            uninitialized variable instead of the proper error code.  Fix from
            Borislav Petkov.
      
         3) Fix double SKB free in ath9k driver beacon handling, from Felix
            Feitkau.
      
         4) Remove bogus assumption about netns cleanup ordering in
            nf_conntrack, from Pablo Neira Ayuso.
      
         5) Remove a bogus BUG_ON in the new TCP fastopen code, from Eric
            Dumazet.  It uses spin_is_locked() in it's test and is therefore
            unsuitable for UP.
      
         6) Fix SELINUX labelling regressions added by the tuntap multiqueue
            changes, from Paul Moore.
      
         7) Fix CRC errors with jumbo frame receive in tg3 driver, from Nithin
            Nayak Sujir.
      
         8) CXGB4 driver sets interrupt coalescing parameters only on first
            queue, rather than all of them.  Fix from Thadeu Lima de Souza
            Cascardo.
      
         9) Fix regression in the dispatch of read/write registers in dm9601
            driver, from Tushar Behera.
      
        10) ipv6_append_data miscalculates header length, from Romain KUNTZ.
      
        11) Fix PMTU handling regressions on ipv4 routes, from Steffen
            Klassert, Timo Teräs, and Julian Anastasov.
      
        12) In 3c574_cs driver, add necessary parenthesis to "x << y & z"
            expression.  From Nickolai Zeldovich.
      
        13) macvlan_get_size() causes underallocation netlink message space,
            fix from Eric Dumazet.
      
        14) Avoid division by zero in xfrm_replay_advance_bmp(), from Nickolai
            Zeldovich.  Amusingly the zero check was already there, we were
            just performing it after the modulus :-)
      
        15) Some more splice bug fixes from Eric Dumazet, which fix things
            mostly eminating from how we now more aggressively use high-order
            pages in SKBs.
      
        16) Fix size calculation bug when freeing hash tables in the IPSEC
            xfrm code, from Michal Kubecek.
      
        17) Fix PMTU event propagation into socket cached routes, from Steffen
            Klassert.
      
        18) Fix off by one in TX buffer release in netxen driver, from Eric
            Dumazet.
      
        19) Fix rediculous memory allocation requirements introduced by the
            tuntap multiqueue changes, from Jason Wang.
      
        20) Remove bogus AMD platform workaround in r8169 driver that causes
            major problems in normal operation, from Timo Teräs.
      
        21) virtio-net set affinity and select queue don't handle
            discontiguous cpu numbers properly, fix from Wanlong Gao.
      
        22) Fix a route refcounting issue in loopback driver, from Eric
            Dumazet.  There's a similar fix coming that we might add to the
            macvlan driver as well.
      
        23) Fix SKB leaks in batman-adv's distributed arp table code, from
            Matthias Schiffer.
      
        24) r8169 driver gives descriptor ownership back the hardware before
            we're done reading the VLAN tag out of it, fix from Francois
            Romieu.
      
        25) Checksums not calculated properly in GRE tunnel driver fix from
            Pravin B Shelar.
      
      26) Fix SCTP memory leak on namespace exit."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (101 commits)
        dm9601: support dm9620 variant
        SCTP: Free the per-net sysctl table on net exit. v2
        net: phy: icplus: fix broken INTR pin settings
        net: phy: icplus: Use the RGMII interface mode to configure clock delays
        IP_GRE: Fix kernel panic in IP_GRE with GRE csum.
        sctp: set association state to established in dupcook_a handler
        ip6mr: limit IPv6 MRT_TABLE identifiers
        r8169: fix vlan tag read ordering.
        net: cdc_ncm: use IAD provided by the USB core
        batman-adv: filter ARP packets with invalid MAC addresses in DAT
        batman-adv: check for more types of invalid IP addresses in DAT
        batman-adv: fix skb leak in batadv_dat_snoop_incoming_arp_reply()
        net: loopback: fix a dst refcounting issue
        virtio-net: reset virtqueue affinity when doing cpu hotplug
        virtio-net: split out clean affinity function
        virtio-net: fix the set affinity bug when CPU IDs are not consecutive
        can: pch_can: fix invalid error codes
        can: ti_hecc: fix invalid error codes
        can: c_can: fix invalid error codes
        r8169: remove the obsolete and incorrect AMD workaround
        ...
      22f83798
  2. 28 1月, 2013 12 次提交
  3. 27 1月, 2013 16 次提交