13 Jul, 2008

8 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
    [SCSI] bsg: fix oops on remove
    [SCSI] fusion: default MSI to disabled for SPI and FC controllers
    [SCSI] ipr: Fix HDIO_GET_IDENTITY oops for SATA devices
    [SCSI] mptspi: fix oops in mptspi_dv_renegotiate_work()
    [SCSI] erase invalid data returned by device

    Linus Torvalds
     
  • Add the rtc8564 chip entry

    Signed-off-by: Jon Smirl
    Signed-off-by: Alessandro Zummo
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jon Smirl
     
  • Fix chip naming from fm3031-rtc to fm3031

    Signed-off-by: Alessandro Zummo
    Cc: Sergey Lapin
    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alessandro Zummo
     
  • Cortland Setlow pointed out a bug in ov7670.c where the result from
    ov7670_read() was just being checked for !0, rather than
    Signed-off-by: Andres Salomon
    Acked-by: Jonathan Corbet
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andres Salomon
     
  • I had 8250.nr_uarts=16 in the boot line of a test kernel and I had a weird
    mysterious crash in sysfs. After taking an in-depth look I realized that
    CONFIG_SERIAL_8250_NR_UARTS was set to 4 and I was walking off the end of
    the serial8250_ports array.

    Ouch!!!

    Don't let this happen to someone else.

    Signed-off-by: Eric W. Biederman
    Acked-by: Alan Cox
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     
  • This patch is a bugfix for how defio handles multiple processes manipulating
    the same framebuffer.

    Thanks to Bernard Blackham for identifying this bug.

    It occurs when two applications mmap the same framebuffer and concurrently
    write to the same page. Normally, this doesn't occur since only a single
    process mmaps the framebuffer. The symptom of the bug is that the mapping
    applications will hang. The cause is that defio incorrectly tries to add the
    same page twice to the pagelist. The solution I have is to walk the pagelist
    and check for a duplicate before adding. Since I needed to walk the pagelist,
    I now also keep the pagelist in sorted order.

    Signed-off-by: Jaya Kumar
    Cc: Bernard Blackham
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jaya Kumar
     
  • Coverity CID: 1356 RESOURCE_LEAK

    I found a very old patch for this that was Acked but did not get applied
    https://lists.linux-foundation.org/pipermail/kernel-janitors/2006-September/016362.html

    There looks to be a small leak in isdn_writebuf_stub() in isdn_common.c, when
    copy_from_user() returns an un-copied data length (length != 0). The below
    patch should be a minimally invasive fix.

    Signed-off-by: Darren Jenkins
    Acked-by: Karsten Keil
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Darren Jenkins
     
  • Coverity CID: 2172 RESOURCE_LEAK

    When pool_allocate() tries to enlarge a packet, if it can not allocate enough
    memory, it returns NULL without first freeing the old packet.

    This patch just frees the packet first.

    Signed-off-by: Darren Jenkins
    Acked-by: Jiri Kosina
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Darren Jenkins
     

12 Jul, 2008

5 commits


11 Jul, 2008

10 commits

  • The problem is introduced by commit
    664d080c41463570b95717b5ad86e79dc1be0877.

    acpi_evaluate_integer is a sleeping function,
    and it should not be called with spin_lock_irqsave.
    https://bugzilla.redhat.com/show_bug.cgi?id=451399

    Signed-off-by: Zhang Rui
    Signed-off-by: Jeff Garzik

    Zhang Rui
     
  • This enables short 40-wire detection for my laptop thus
    enabling UDMA/100.

    Signed-off-by: Jeff Garzik

    Kai Krakow
     
  • Some BIOSen enable DIPM via _GTF which causes command timeouts under
    certain configuration. This didn't occur on 2.6.25 because 2.6.25
    defaulted to SRST, so _GTF wasn't executed during boot probe, so ahci
    host reset disabled DIPM and as _GTF wasn't executed after SRST, DIPM
    wasn't enabled. On 2.6.26, hardreset is used during probe and after
    probe _GTF is executed enabling DIPM and thus the failures.

    This patch could theoretically disable DIPM on machines which used to
    have it enabled on 2.6.25 but AFAIK ahci is currently the only driver
    which uses SATA ACPI hierarchy (_SDD) and as the host reset would have
    always disabled DIPM, this shouldn't happen.

    Signed-off-by: Tejun Heo
    Signed-off-by: Jeff Garzik

    Tejun Heo
     
  • The IRQ rate reported back by the RTC is incorrect when HPET is enabled.

    Newer hardware that has HPET to emulate the legacy RTC device gets this value
    wrong since after it sets the rate, it returns before setting the variable
    used to report the IRQ rate back to users of the device -- so the set rate and
    the reported rate get out of sync.

    Signed-off-by: Paul Gortmaker
    Cc: Ingo Molnar
    Cc: David Brownell
    Cc: Thomas Gleixner
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Gortmaker
     
  • This patch was created by

    git grep -E -l 'Rus(el|s?e)l King' | xargs -r -t perl -p -i -e 's/Rus(el|s?e)l King/Russell King/g'

    Signed-off-by: Uwe Kleine-König
    Most-Definitely-Acked-by: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Uwe Kleine-König
     
  • Fix RapidIO device reference counting.

    Signed-of-by: Eugene Surovegin
    Cc: Matt Porter
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eugene Surovegin
     
  • This patch adds Intel TPM TIS device HID: ICO0102

    Signed-off-by: Marcin Obara
    Acked-by: Marcel Selhorst
    Acked-by: Rajiv Andrade
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Marcin Obara
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (27 commits)
    tun: Persistent devices can get stuck in xoff state
    xfrm: Add a XFRM_STATE_AF_UNSPEC flag to xfrm_usersa_info
    ipv6: missed namespace context in ipv6_rthdr_rcv
    netlabel: netlink_unicast calls kfree_skb on error path by itself
    ipv4: fib_trie: Fix lookup error return
    tcp: correct kcalloc usage
    ip: sysctl documentation cleanup
    Documentation: clarify tcp_{r,w}mem sysctl docs
    netfilter: nf_nat_snmp_basic: fix a range check in NAT for SNMP
    netfilter: nf_conntrack_tcp: fix endless loop
    libertas: fix memory alignment problems on the blackfin
    zd1211rw: stop beacons on remove_interface
    rt2x00: Disable synchronization during initialization
    rc80211_pid: Fix fast_start parameter handling
    sctp: Add documentation for sctp sysctl variable
    ipv6: fix race between ipv6_del_addr and DAD timer
    irda: Fix netlink error path return value
    irda: New device ID for nsc-ircc
    irda: via-ircc proper dma freeing
    sctp: Mark the tsn as received after all allocations finish
    ...

    Linus Torvalds
     
  • The scenario goes like this. App stops reading from tun/tap.
    TX queue gets full and driver does netif_stop_queue().
    App closes fd and TX queue gets flushed as part of the cleanup.
    Next time the app opens tun/tap and starts reading from it but
    the xoff state is not cleared. We're stuck.
    Normally xoff state is cleared when netdev is brought up. But
    in the case of persistent devices this happens only during
    initial setup.

    The fix is trivial. If device is already up when an app opens
    it we clear xoff state and that gets things moving again.

    Signed-off-by: Max Krasnyansky
    Tested-by: Christian Borntraeger
    Signed-off-by: David S. Miller

    Max Krasnyansky
     
  • * 'for-2.6.26' of git://neil.brown.name/md:
    md: ensure all blocks are uptodate or locked when syncing

    Linus Torvalds
     

10 Jul, 2008

5 commits


09 Jul, 2008

5 commits

  • The change to iwch_provider.c in commit f4e91eb4 ("IB: convert struct
    class_device to struct device") undid the fix done in commit 7f049f2f
    ("RDMA/cxgb3: Hold rtnl_lock() around ethtool get_drvinfo call"). It
    removed the calls to rtnl_lock() that serialized the iw_cxgb3 ethtool
    ops calls into the cxgb3 driver. This locking is needed to avoid
    messing up the internal state of the cxgb3 driver.

    Signed-off-by: Steve Wise
    Signed-off-by: Roland Dreier

    Steve Wise
     
  • On 2.6.26-rc9, the commit 05946bce839b4fed5442dbfab77060fb75e051f3
    ("fsl_diu_fb: fix build with CONFIG_PM=y, plus fix some warnings")
    breaks its previous fix f969c5672b16b857e5231ad3c78f08d8ef3305aa
    ("fsl-diu-db: compile fix")

    This patch reverts the broken part.

    Signed-off-by: Takashi Iwai
    Acked-by: Anton Vorontsov
    Signed-off-by: Linus Torvalds

    Takashi Iwai
     
  • Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • The driver uses completely bogus rounding formula for calculating period from
    the IDECLK frequency which gives one-off period values (e.g. 11 ns with 100 MHz
    IDECLK) which in turn can lead to overclocked IDE transfer timings. Actually,
    rounding is just wrong in this case, so use a mere division for a safe result.

    While at it, also:

    - give 'ide_palm_clk' variable a more suitable name;

    - get rid of the useless 'ideclkp' variable;

    - drop the LISP stype 'p' postfix from the 'clkp' variable's name. :-)

    Signed-off-by: Sergei Shtylyov
    Cc: mcherkashin@ru.mvista.com
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Sergei Shtylyov
     
  • Add __ide_default_irq() inline helper and use it instead of
    ide_default_irq() in ide-probe.c and ns87415.c (all host drivers
    except IDE PCI ones always setup hwif->irq so it is enough to
    check only for I/O bases 0x1f0 and 0x170).

    This fixes post-2.6.25 regression since ide_default_irq()
    define could shadow ide_default_irq() inline.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     

08 Jul, 2008

7 commits