Commits on Feb 12, 2009
  1. Linux

    gregkh committed Feb 12, 2009
  2. genirq: NULL struct irq_desc's member 'name' in dynamic_irq_cleanup()

    commit b6f3b78 upstream.
    If the member 'name' of the irq_desc structure happens to point to a
    character string that is resident within a kernel module, problems ensue
    if that module is rmmod'd (at which time dynamic_irq_cleanup() is called)
    and then later show_interrupts() is called by someone.
    It is also not a good thing if the character string resided in kmalloc'd
    space that has been kfree'd (after having called dynamic_irq_cleanup()).
    dynamic_irq_cleanup() fails to NULL the 'name' member and
    show_interrupts() references it on a few architectures (like h8300, sh and
    Signed-off-by: Dean Nelson <>
    Signed-off-by: Ingo Molnar <>
    Signed-off-by: Andrew Morton <>
    Signed-off-by: Ingo Molnar <>
    Signed-off-by: Greg Kroah-Hartman <>
    Dean Nelson committed with gregkh Oct 18, 2008
  3. sctp: Fix another socket race during accept/peeloff

    commit ae53b5b upstream.
    There is a race between sctp_rcv() and sctp_accept() where we
    have moved the association from the listening socket to the
    accepted socket, but sctp_rcv() processing cached the old
    socket and continues to use it.
    The easy solution is to check for the socket mismatch once we've
    grabed the socket lock.  If we hit a mis-match, that means
    that were are currently holding the lock on the listening socket,
    but the association is refrencing a newly accepted socket.  We need
    to drop the lock on the old socket and grab the lock on the new one.
    A more proper solution might be to create accepted sockets when
    the new association is established, similar to TCP.  That would
    eliminate the race for 1-to-1 style sockets, but it would still
    existing for 1-to-many sockets where a user wished to peeloff an
    association.  For now, we'll live with this easy solution as
    it addresses the problem.
    Reported-by: Michal Hocko <>
    Reported-by: Karsten Keil <>
    Signed-off-by: Vlad Yasevich <>
    Signed-off-by: David S. Miller <>
    Signed-off-by: Greg Kroah-Hartman <>
    Vlad Yasevich committed with gregkh Jan 22, 2009
  4. USB: usb-storage: add Pentax to the bad-vendor list

    commit 506e946 upstream.
    This patch (as1202) adds Pentax to usb-storage's list of bad vendors
    whose devices always need the CAPACITY_HEURISTICS flag.  This is in
    addition to the existing entries: Nokia, Nikon, and Motorola.
    Signed-off-by: Alan Stern <>
    Tested-by: Virgo Pärna <>
    Signed-off-by: Greg Kroah-Hartman <>
    Alan Stern committed with gregkh Feb 4, 2009
  5. USB: two more usb ids for ti_usb_3410_5052

    commit 97dcf04 upstream.
    This patch adds device IDs and balances the counts to make the
    hot ID additioning mechanism work.
    Signed-off-by: Oliver Neukum <>
    Cc: Chris Adams <>
    Signed-off-by: Greg Kroah-Hartman <>
    Oliver Neukum committed with gregkh Feb 4, 2009
  6. USB: option: New mobile broadband modems to be supported

    commit c200b9c upstream.
    - New Novatel and Dell mobile broadband modem products added
     - Dell pid variables used in stead of numerical PIDs for known
    Signed-off-by: Dirk De Schepper <>
    Signed-off-by: Matthias Urlichs <>
    Signed-off-by: Greg Kroah-Hartman <>
    Dirk De Schepper committed with gregkh Feb 6, 2009
  7. USB: new id for ti_usb_3410_5052 driver

    commit 1a1fab5 upstream.
    This adds a new device id
    Signed-off-by: Oliver Neukum <>
    Signed-off-by: Greg Kroah-Hartman <>
    Oliver Neukum committed with gregkh Jan 12, 2009
  8. Revert USB: option: add Pantech cards

    commit 6b40c00 upstream.
    Revert 8b6346e as these devices really
    work just fine with the cdc-acm driver, as they follow the spec
    Thanks to Chuck Ebbert for pointing out the problem here.
    Cc: Chuck Ebbert <>
    Cc: Dan Williams <>
    Signed-off-by: Greg Kroah-Hartman <>
    gregkh committed Feb 4, 2009
  9. ACPI: video: Fix reversed brightness behavior on ThinkPad SL series

    commit 935e5f2 upstream.
    Section B.6.2 of ACPI 3.0b specification that defines _BCL method
    doesn't require the brightness levels returned to be sorted.
    At least ThinkPad SL300 (and probably all IdeaPads) returns the
    array reversed (i.e. bightest levels have lowest indexes), which
    causes the brightness management behave in completely reversed
    manner on these machines (brightness increases when the laptop is
    idle, while the display dims when used).
    Sorting the array by brightness level values after reading the list
    fixes the issue.
    Signed-off-by: Zhang Rui <>
    Tested-by: Lubomir Rintel <>
    Signed-off-by: Len Brown <>
    Signed-off-by: Thomas Renninger <>
    Signed-off-by: Greg Kroah-Hartman <>
    zhang-rui committed with gregkh Dec 11, 2008
  10. ACPI: don't load acpi_cpufreq if acpi=off

    commit ee29753 upstream.
    Signed-off-by: Yinghai Lu <>
    Signed-off-by: Len Brown <>
    Signed-off-by: Thomas Renninger <>
    Signed-off-by: Greg Kroah-Hartman <>
    yhlu committed with gregkh Sep 25, 2008
  11. ACPICA: Add function to dereference returned reference objects

    commit bbc2413 upstream.
    Examines the return object from a call to acpi_evaluate_object.
    Any Index or RefOf references are automatically dereferenced in
    an attempt to return something useful (these reference types
    cannot be converted into an external ACPI_OBJECT.)
    Lin Ming, Bob Moore.
    Signed-off-by: Lin Ming <>
    Signed-off-by: Bob Moore <>
    Signed-off-by: Andi Kleen <>
    Signed-off-by: Len Brown <>
    Signed-off-by: Thomas Renninger <>
    Signed-off-by: Greg Kroah-Hartman <>
    Lin Ming committed with gregkh Aug 4, 2008
  12. ACPICA: Copy dynamically loaded tables to local buffer

    commit f0e0da8 upstream.
    Previously, dynamically loaded tables were simply mapped, but on some machines
    this memory is corrupted after suspend. Now copy the table to a local buffer.
    For OpRegion case, added checksum verify. Use the table length from the table header,
    not the region length. For Buffer case, use the table length also.
    Signed-off-by: Dennis Noordsij <>
    Signed-off-by: Bob Moore <>
    Signed-off-by: Lin Ming <>
    Signed-off-by: Andi Kleen <>
    Signed-off-by: Len Brown <>
    Signed-off-by: Thomas Renninger <>
    Signed-off-by: Greg Kroah-Hartman <>
    Dennis Noordsij committed with gregkh Aug 15, 2008
  13. dm mpath: avoid attempting to activate null path

    commit b81aa1c upstream.
    Path activation code is called even when the pgpath is NULL. This could
    lead to a panic in activate_path(). Such a panic is seen in -rt kernel.
    This problem has been there before the pg_init() was moved to a
    Signed-off-by: Chandra Seetharaman <>
    Signed-off-by: Alasdair G Kergon <>
    Signed-off-by: Hannes Reinecke <>
    Signed-off-by: Greg Kroah-Hartman <>
    chandra2 committed with gregkh Nov 13, 2008
  14. hso: rfkill type should be WWAN

    commit db053c6 upstream.
    Signed-off-by: Paulius Zaleckas <>
    Cc: Denis Joseph Barrow <>
    Signed-off-by: Jeff Garzik <>
    Signed-off-by: Frank Seidel <>
    Signed-off-by: Greg Kroah-Hartman <>
    Paulius Zaleckas committed with gregkh Nov 4, 2008
  15. ipw2200: fix scanning while associated

    commit 14a4dfe upstream.
    This patch fixes sporadic firmware restarts when scanning while associated.
    The firmware will quietly cancel a scan (while associated) if the dwell time
    for a channel to be scanned is larger than the time it may stay away from the
    operating channel (because of DTIM catching). Unfortunately the driver is not
    notified about the canceled scan and therefore the scan watchdog timeout will
    be hit and the driver causes a firmware restart which results in
    disassociation. This mainly happens on passive channels which use a dwell time
    of 120 whereas a typical beacon interval is around 100.
    The patch changes the dwell time for passive channels to be slightly smaller
    than the actual beacon interval to work around the firmware issue. Furthermore
    the number of allowed beacon misses is increased from one to three as otherwise
    most scans (while associated) won't complete successfully.
    However scanning while associated will still fail in corner cases such as a
    beacon intervals below 30.
    Signed-off-by: Helmut Schaa <>
    Signed-off-by: John W. Linville <>
    Signed-off-by: Greg Kroah-Hartman <>
    helmut-jacob committed with gregkh Dec 10, 2008
  16. md: Allow metadata_version to be updated for externally managed metad…

    commit ea43ddd upstream.
    For externally managed metadata, the 'metadata_version' sysfs
    attribute is really just a channel for user-space programs to
    communicate about how the array is being managed.
    It can be useful for this to be changed while the array is active.
    Normally changes to metadata_version are not permitted while the array
    is active.  Change that so that if the metadata is externally managed,
    the metadata_version can be changed to a different flavour of external
    Signed-off-by: NeilBrown <>
    Signed-off-by: Greg Kroah-Hartman <>
    neilbrown committed with gregkh Oct 13, 2008
  17. md: Don't try to set an array to 'read-auto' if it is already in that…

    … state.
    commit 80268ee upstream.
    'read-auto' is a variant of 'readonly' which will switch to writable
    on the first write attempt.
    Calling do_md_stop to set the array readonly when it is already readonly
    returns an error.  So make sure not to do that.
    Signed-off-by: NeilBrown <>
    Signed-off-by: Greg Kroah-Hartman <>
    neilbrown committed with gregkh Oct 13, 2008
  18. Revert "vt: fix background color on line feed"

    commit 93f78da upstream.
    This reverts commit c9e587a, and the
    subsequent commits that fixed it up:
     - afa9b64 "fbcon: prevent cursor disappearance after switching to 512
       character font"
     - d850a2f "vt/fbcon: fix background color on line feed"
     - 7fe3915 "vt/fbcon: update scrl_erase_char after 256/512-glyph font
    by request of Alan Cox. Quoth Alan:
      "Unfortunately it's wrong and its been causing breakages because
       various apps like ncurses expect our previous (and correct)
    Alexander sent out a similar patch.
    Requested-by: Alan Cox <>
    Tested-by: Jan Engelhardt <>
    Cc: Alexander V. Lukyanov <>
    Signed-off-by: Linus Torvalds <>
    Cc: Tony Jones <>
    Signed-off-by: Greg Kroah-Hartman <>
    torvalds committed with gregkh Oct 14, 2008
  19. mm: remove UP version of lru_add_drain_all()

    commit 6841c8e upstream.
    Currently, lru_add_drain_all() has two version.
      (1) use schedule_on_each_cpu()
      (2) don't use schedule_on_each_cpu()
    Gerald Schaefer reported it doesn't work well on SMP (not NUMA) S390
      offline_pages() calls lru_add_drain_all() followed by drain_all_pages().
      While drain_all_pages() works on each cpu, lru_add_drain_all() only runs
      on the current cpu for architectures w/o CONFIG_NUMA. This let us run
      into the BUG_ON(!PageBuddy(page)) in __offline_isolated_pages() during
      memory hotplug stress test on s390. The page in question was still on the
      pcp list, because of a race with lru_add_drain_all() and drain_all_pages()
      on different cpus.
    Actually, Almost machine has CONFIG_UNEVICTABLE_LRU=y. Then almost machine use
    (1) version lru_add_drain_all although the machine is UP.
    Then this ifdef is not valueable.
    simple removing is better.
    Signed-off-by: KOSAKI Motohiro <>
    Cc: Christoph Lameter <>
    Cc: Lee Schermerhorn <>
    Acked-by: Gerald Schaefer <>
    Cc: Dave Hansen <>
    Signed-off-by: Andrew Morton <>
    Signed-off-by: Linus Torvalds <>
    Cc: Nick Piggin <>
    Signed-off-by: Greg Kroah-Hartman <>
    kosaki committed with gregkh Dec 9, 2008
  20. Add a reference to sunrpc in svc_addsock

    commit 2da2c21 upstream.
    The svc_addsock function adds transport instances without taking a
    reference on the sunrpc.ko module, however, the generic transport
    destruction code drops a reference when a transport instance
    is destroyed.
    Add a try_module_get call to the svc_addsock function for transport
    instances added by this function.
    Signed-off-by: Tom Tucker <>
    Signed-off-by: J. Bruce Fields <>
    Tested-by: Jeff Moyer <>
    Cc: Neil Brown <>
    Signed-off-by: Greg Kroah-Hartman <>
    Tom Tucker committed with gregkh Nov 23, 2008
  21. XFS: set b_error from bio error in xfs_buf_bio_end_io

    commit cfbe526 upstream.
    Preserve any error returned by the bio layer.
    Reviewed-by: Eric Sandeen <>
    Reviewed-by: Tim Shimmin <>
    Signed-off-by: Lachlan McIlroy <>
    Cc: Neil Brown <>
    Signed-off-by: Greg Kroah-Hartman <>
    Lachlan McIlroy committed with gregkh Dec 12, 2008
  22. elf core dump: fix get_user use

    commit 92dc07b upstream.
    The elf_core_dump() code does its work with set_fs(KERNEL_DS) in force,
    so vma_dump_size() needs to switch back with set_fs(USER_DS) to safely
    use get_user() for a normal user-space address.
    Checking for VM_READ optimizes out the case where get_user() would fail
    anyway.  The vm_file check here was already superfluous given the control
    flow earlier in the function, so that is a cleanup/optimization unrelated
    to other changes but an obvious and trivial one.
    Reported-by: Gerald Schaefer <>
    Signed-off-by: Roland McGrath <>
    Signed-off-by: Greg Kroah-Hartman <>
    Roland McGrath committed with gregkh Feb 7, 2009
  23. serial: set correct baud_base for Oxford Semiconductor Ltd EXSYS EX-4…

    …1092 Dual 16950 Serial adapter
    commit 39aced6 upstream.
    The PCI-card identified as "Oxford Semiconductor Ltd EXSYS EX-41092 Dual
    16950 Serial adapter" is only usable with other devices (i.e. not the same
    card) after doing a "setserial /dev/ttyS<n> baud_base 115200".  This
    baud_base should be default for this card.
    Signed-off-by: Niels de Vos <>
    Signed-off-by: Alan Cox <>
    Signed-off-by: Linus Torvalds <>
    Signed-off-by: Greg Kroah-Hartman <>
    Niels de Vos committed with gregkh Jan 2, 2009
  24. seq_file: fix big-enough lseek() + read()

    commit f01d1d5 upstream.
    lseek() further than length of the file will leave stale ->index
    (second-to-last during iteration). Next seq_read() will not notice
    that ->f_pos is big enough to return 0, but will print last item
    as if ->f_pos is pointing to it.
    Introduced in commit cb510b8
    aka "seq_file: more atomicity in traverse()".
    Signed-off-by: Alexey Dobriyan <>
    Signed-off-by: Linus Torvalds <>
    Signed-off-by: Greg Kroah-Hartman <>
    Alexey Dobriyan committed with gregkh Feb 5, 2009
  25. seq_file: move traverse so it can be used from seq_read

    commit 33da889 upstream.
    In 2.6.25 some /proc files were converted to use the seq_file
    infrastructure.  But seq_files do not correctly support pread(), which
    broke some usersapce applications.
    To handle pread correctly we can't assume that f_pos is where we left it
    in seq_read.  So move traverse() so that we can eventually use it in
    seq_read and do thus some day support pread().
    Signed-off-by: Eric Biederman <>
    Cc: Paul Turner <>
    Cc: Alexey Dobriyan <>
    Cc: Al Viro <>
    Signed-off-by: Andrew Morton <>
    Signed-off-by: Linus Torvalds <>
    Signed-off-by: Greg Kroah-Hartman <>
    ebiederm committed with gregkh Feb 4, 2009
  26. PCI: return error on failure to read PCI ROMs

    commit 97c4483 upstream.
    This patch makes the ROM reading code return an error to user space if
    the size of the ROM read is equal to 0.
    The patch also emits a warnings if the contents of the ROM are invalid,
    and documents the effects of the "enable" file on ROM reading.
    Signed-off-by: Timothy S. Nelson <>
    Acked-by: Alex Villacis-Lasso <>
    Signed-off-by: Jesse Barnes <>
    Signed-off-by: Greg Kroah-Hartman <>
    wayland committed with gregkh Jan 29, 2009
  27. PCI: properly clean up ASPM link state on device remove

    commit 3419c75 upstream.
    We only want to disable ASPM when the last function is removed from
    the parent's device list. We determine this by checking to see if
    the parent's device list is completely empty.
    Unfortunately, we never hit that code because the parent is considered
    an upstream port, and never had an ASPM link_state associated with it.
    The early check for !link_state causes us to return early, we never
    discover that our device list is empty, and thus we never remove the
    downstream ports' link_state nodes.
    Instead of checking to see if the parent's device list is empty, we can
    check to see if we are the last device on the list, and if so, then we
    know that we can clean up properly.
    Cc: Shaohua Li <>
    Signed-off-by: Alex Chiang <>
    Signed-off-by: Jesse Barnes <>
    Signed-off-by: Greg Kroah-Hartman <>
    Alex Chiang committed with gregkh Jan 28, 2009
  28. ALSA: hda - Add quirk for FSC Amilo Xi2550

    commit f67d817 upstream.
    Added model=fujisu-pi2515 for FSC Amilo Xi2550 with ALC883 codec.
    Refernece: Novell bnc#450979
    Signed-off-by: Takashi Iwai <>
    Signed-off-by: Greg Kroah-Hartman <>
    tiwai committed with gregkh Feb 4, 2009
  29. ALSA: hda - Add missing initialization for ALC272

    commit c6e8f2d upstream.
    ALC272 needs EAPD for speaker outputs as well as other similar ALC
    Signed-off-by: Takashi Iwai <>
    Signed-off-by: Greg Kroah-Hartman <>
    tiwai committed with gregkh Feb 6, 2009
  30. ALSA: hda - Add missing COEF initialization for ALC887

    commit 4a5a4c5 upstream.
    Signed-off-by: Takashi Iwai <>
    Signed-off-by: Greg Kroah-Hartman <>
    tiwai committed with gregkh Feb 6, 2009
  31. Add support for '8-port RS-232 MIC-3620 from advantech'

    commit 78d70d4 upstream.
    This Patch add the device information for the
    MIC-3620 8-port RS-232 cPCI card from Advantech Co. Ltd.
    Signed-off-by: Michael Bramer <>
    Signed-off-by: Alan Cox <>
    Signed-off-by: Linus Torvalds <>
    Signed-off-by: Greg Kroah-Hartman <>
    Michael Bramer committed with gregkh Jan 27, 2009
  32. ACPI: Skip the first two elements in the _BCL package

    commit 0a3db1c upstream.
    According to the Spec the first two elements in the _BCL package won't be
    regarded as the available brightness level. The first is the brightness when
    full power is connected to the box(It means that the AC adapter is plugged).
    The second is the brightness level when the box is on battery.
        If the first two elements are still used while finding the next brightness
    level, it will fall back to the lowest level when keeping on pressing
    hotkey. (On some boxes the brightness will be changed twice when hotkey is
    pressed once. One is in the ACPI video driver. The other is changed by sys I/F.
    In the ACPI video driver the first two elements will be used while changing
    the brightness. But the first two elements is skipped while using sys I/F.
    In such case there exists the inconsistency).
        So he first two elements had better be skipped while showing the available
    brightness or finding the next brightness level.
    Signed-off-by: Zhao Yakui <>
    Signed-off-by: Len Brown <>
    Signed-off-by: Greg Kroah-Hartman <>
    yakuizhao committed with gregkh Feb 2, 2009
  33. ACPI: proc_dir_entry 'video/VGA' already registered

    commit f3b39f1 upstream.
    eliminate the duplicate the name of "VGA"
    Signed-off-by: Zhao Yakui <>
    Signed-off-by: Len Brown <>
    Signed-off-by: Greg Kroah-Hartman <>
    yakuizhao committed with gregkh Feb 3, 2009
  34. ACPI: disable ACPI cleanly when bad RSDP found

    commit 9e3a9d1 upstream.
    When ACPI is disabled in the BIOS of this VIA C3 box,
    it invalidates the RSDP, which Linux notices:
    ACPI Error (tbxfroot-0218): A valid RSDP was not found [20080926]
    Bug Linux neglected to disable ACPI at that stage,
    and later scribbled on smp_found_config:
    ACPI: No APIC-table, disabling MPS
    But this box doesn't run well in legacy PIC mode,
    it needed IOAPIC mode to perform correctly:
    So exit ACPI mode cleanly when we first detect
    that it is hopeless.
    Signed-off-by: Len Brown <>
    Signed-off-by: Greg Kroah-Hartman <>
    lenb committed with gregkh Feb 6, 2009
  35. ACPICA: Fix table entry truncation calculation

    commit 386e4a8 upstream.
    During early boot, ACPI RSDT/XSDT table entries are gathered into the
    'initial_tables[]' array.  This array is currently statically defined (see
    ./drivers/acpi/tables.c).  When there are more table entries than can be
    held in the 'initial_tables[]' array, the message "Truncating N table
    entries!" is output.  As currently implemented, this message will always
    erroneously calculate N as 0.
    This patch fixes the calculation that determines how many table entries
    will be missing (truncated).
    This modification may be used under either the GPL or the BSD-style
    license used for Intel ACPI CA code.
    Signed-off-by: Myron Stowe <>
    Signed-off-by: Andrew Morton <>
    Signed-off-by: Len Brown <>
    Signed-off-by: Greg Kroah-Hartman <>
    Myron Stowe committed with gregkh Jan 30, 2009