Commits on Mar 28, 2007
  1. @AdrianBunk

    Linux 2.6.16.46-rc1

    AdrianBunk committed Mar 28, 2007
  2. @tiwai @AdrianBunk

    [ALSA] ca0106 - Add missing sysfs device assignment

    Added the missing device assignment before creating sysfs tree.
    This caused the insufficient device permissions.
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    tiwai committed with AdrianBunk Mar 28, 2007
  3. @tiwai @AdrianBunk

    [ALSA] cs4281 - Fix the check of right channel

    Fix the check of right channel in mixer volume put callback.
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    tiwai committed with AdrianBunk Mar 28, 2007
  4. @fmalita @AdrianBunk

    [ALSA] Dereference after free in snd_hwdep_release()

    snd_card_file_remove() may free hw->card so we can't dereference
    hw->card->module after that.
    Coverity ID 1420.
    
    Signed-off-by: Florin Malita <fmalita@gmail.com>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    fmalita committed with AdrianBunk Mar 28, 2007
  5. @tiwai @AdrianBunk

    [ALSA] cmipci - Fix a typo in 'PC Speaker Playback Switch' control

    Fixed a typo in  'PC Speaker Playback Switch' control name.
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    tiwai committed with AdrianBunk Mar 28, 2007
  6. @SesterhennEric @AdrianBunk

    [ALSA] fix NULL pointer dereference in sound/synth/emux/soundfont.c

    this is about coverity id #100.
    It seems the if statement is negated, since the else branch calls
    remove_info() with sflist->currsf as a parameter where it gets
    dereferenced.
    
    Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    SesterhennEric committed with AdrianBunk Mar 28, 2007
  7. @tiwai @AdrianBunk

    [ALSA] Fix invalid assignment of PCI revision

    Fix the type of PCI revision to char from int and avoid invalid
    assignment with pointer cast.
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    tiwai committed with AdrianBunk Mar 28, 2007
  8. @tiwai @AdrianBunk

    [ALSA] hda-intel - Don't try to probe invalid codecs

    Fix the max number of codecs detected by HD-intel (and compatible)
    controllers.
    
    ATI controllers may have up to 4 codecs while ICH up to 3.
    Now max codecs is defined according to the driver type, either 3 or 4.
    Currently 4 is set only to ATI chips.  Other might need the same
    change, too.
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    tiwai committed with AdrianBunk Mar 28, 2007
  9. @tiwai @AdrianBunk

    [ALSA] hda-codec - Don't return error at initialization of modem codec

    Some modem codec seem to fail in the initialization, and this
    stopped loading of the whole module although the audio is OK.
    Since it's usually a non-fatal issue, the driver tries to proceed
    to initialize now.
    
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    tiwai committed with AdrianBunk Mar 28, 2007
  10. @cladisch @AdrianBunk

    usb-audio: work around wrong frequency in CM6501 descriptors

    The C-Media CM6501 chip's descriptors say that altsetting 5 supports
    48 kHz, but it actually plays at 96 kHz.
    
    Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
    Signed-off-by: Jaroslav Kysela <perex@suse.cz>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    cladisch committed with AdrianBunk Mar 28, 2007
  11. @AdrianBunk

    sound/pci/au88x0/au88x0.c: ioremap balanced with iounmap

    Signed-off-by: Amol Lad <amol@verismonetworks.com>
    Signed-off-by: Takashi Iwai <tiwai@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Amol Lad committed with AdrianBunk Mar 28, 2007
  12. @AdrianBunk

    [IPV6] HASHTABLES: Use appropriate seed for caluculating ehash index.

    Tetsuo Handa <handat@pm.nttdata.co.jp> told me that connect(2) with TCPv6
    socket almost always took a few minutes to return when we did not have any
    ports available in the range of net.ipv4.ip_local_port_range.
    
    The reason was that we used incorrect seed for calculating index of
    hash when we check established sockets in __inet6_check_established().
    
    Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    YOSHIFUJI Hideaki committed with AdrianBunk Mar 28, 2007
  13. @AdrianBunk

    [PPP]: Don't leak an sk_buff on interface destruction.

    Signed-off-by: Guennadi Liakhovetski <gl@dsa-ac.de>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Guennadi Liakhovetski committed with AdrianBunk Mar 28, 2007
  14. @kaber @AdrianBunk

    [NET_SCHED]: Fix ingress locking

    Ingress queueing uses a seperate lock for serializing enqueue operations,
    but fails to properly protect itself against concurrent changes to the
    qdisc tree. Use queue_lock for now since the real fix it quite intrusive.
    
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    kaber committed with AdrianBunk Mar 28, 2007
  15. @kaber @AdrianBunk

    [NET_SCHED]: cls_basic: fix NULL pointer dereference

    cls_basic doesn't allocate tp->root before it is linked into the
    active classifier list, resulting in a NULL pointer dereference
    when packets hit the classifier before its ->change function is
    called.
    
    Reported by Chris Madden <chris@reflexsecurity.com>
    
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    kaber committed with AdrianBunk Mar 28, 2007
  16. @AdrianBunk

    USB: RAZR v3i unusual_devs

    This adds an unusual_devs entry for the Motorola RAZR 3vi.
    
    Signed-off-by: Phil Dibowitz <phil@ipom.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Pete Zaitcev committed with AdrianBunk Mar 28, 2007
  17. @AdrianBunk

    USB storage: Nokia 6288 unusual_devs entry

    This patch adds an usual_devs entry for the Nokia 6288.
    
    Signed-off-by: Phil Dibowitz <phil@ipom.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Andrew Nayenko committed with AdrianBunk Mar 28, 2007
  18. @AdrianBunk

    USB Storage: US_FL_IGNORE_RESIDUE needed for Aiptek MP3 Player

    Device will not work as a mass storage device without US_FL_IGNORE_RESIDUE.
    
    I bought this mp3 player that takes SD cards here
    
    http://www.aiptek.com/Merchant2/merchant.mvc?Screen=PROD&Product_Code=AX4&Category_Code=MP3&Store_Code=AS
    
    Signed-off-by: Dylan Taft <d13f00l@gmail.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Dylan Taft committed with AdrianBunk Mar 28, 2007
  19. @AdrianBunk

    USB: unusual_devs.h for Sony floppy

    This patch increases the range for 0x054c:0x002c devices to make
    the following Sony USB floppy to work:
    
    T:  Bus=02 Lev=01 Prnt=01 Port=02 Cnt=02 Dev#=  6 Spd=12  MxCh= 0
    D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
    P:  Vendor=054c ProdID=002c Rev=20.00
    S:  Manufacturer=SONY
    S:  Product=USB Floppy
    C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
    I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=04 Prot=00 Driver=usb-storage
    E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
    E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
    E:  Ad=83(I) Atr=03(Int.) MxPS=   2 Ivl=127ms
    
    Signed-off-by: Marcelo Ricardo Leitner <mrl@mandriva.com>
    Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Luiz Fernando N. Capitulino committed with AdrianBunk Mar 28, 2007
  20. @kaber @AdrianBunk

    [NET_SCHED]: Fix endless loops caused by inaccurate qlen counters

    There are multiple problems related to qlen adjustment that can lead
    to an upper qdisc getting out of sync with the real number of packets
    queued, leading to endless dequeueing attempts by the upper layer code.
    
    All qdiscs must maintain an accurate q.qlen counter. There are basically
    two groups of operations affecting the qlen: operations that propagate
    down the tree (enqueue, dequeue, requeue, drop, reset) beginning at the
    root qdisc and operations only affecting a subtree or single qdisc
    (change, graft, delete class). Since qlen changes during operations from
    the second group don't propagate to ancestor qdiscs, their qlen values
    become desynchronized.
    
    This patch adds a function to propagate qlen changes up the qdisc tree,
    optionally calling a callback function to perform qdisc-internal
    maintenance when the child qdisc is deactivated, and converts all
    qdiscs to use this where necessary.
    
    Signed-off-by: Patrick McHardy <kaber@trash.net>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    kaber committed with AdrianBunk Mar 28, 2007
  21. @AdrianBunk

    mm: fix madvise infinine loop

    madvise(MADV_REMOVE) can go into an infinite loop or cause an oops if the
    call covers a region from the start of a vma, and extending past that vma.
    
    Signed-off-by: Nick Piggin <npiggin@suse.de>
    Acked-by: Hugh Dickins <hugh@veritas.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Nick Piggin committed with AdrianBunk Mar 28, 2007
  22. @AdrianBunk

    [SERIAL] Fix oops when removing suspended serial port

    A serial card might have been removed when the system is resumed.
    This results in a suspended port being shut down, which results in
    the ports shutdown method being called twice in a row.  This causes
    BUGs.  Avoid this by tracking the suspended state separately from
    the initialised state.
    
    Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Russell King committed with AdrianBunk Mar 28, 2007
Commits on Mar 26, 2007
  1. @AdrianBunk

    ieee1394: dv1394: fix CardBus card ejection

    Fix NULL pointer dereference on hot ejection of a FireWire card while
    dv1394 was loaded.  http://bugzilla.kernel.org/show_bug.cgi?id=7121
    
    Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Stefan Richter committed with AdrianBunk Mar 27, 2007
  2. @mita @AdrianBunk

    md: fix /proc/mdstat refcounting

    I have seen mdadm oops after successfully unloading md module.
    
    This patch privents from unloading md module while
    mdadm is polling /proc/mdstat.
    
    Signed-off-by: Akinbou Mita <akinobu.mita@gmail.com>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    mita committed with AdrianBunk Mar 26, 2007
  3. @radii @AdrianBunk

    fix read past end of array in md/linear.c

    When iterating through an array, one must be careful to test one's index
    variable rather than another similarly-named variable.
    
    The loop will read off the end of conf->disks[] in the following
    (pathological) case:
    
    % dd bs=1 seek=840716287 if=/dev/zero of=d1 count=1
    % for i in 2 3 4; do dd if=/dev/zero of=d$i bs=1k count=$(($i+150)); done
    % ./vmlinux ubd0=root ubd1=d1 ubd2=d2 ubd3=d3 ubd4=d4
    # mdadm -C /dev/md0 --level=linear --raid-devices=4 /dev/ubd[1234]
    
    adding some printks, I saw this:
    [42949374.960000] hash_spacing = 821120
    [42949374.960000] cnt          = 4
    [42949374.960000] min_spacing  = 801
    [42949374.960000] j=0 size=820928 sz=820928
    [42949374.960000] i=0 sz=820928 hash_spacing=820928
    [42949374.960000] j=1 size=64 sz=64
    [42949374.960000] j=2 size=64 sz=128
    [42949374.960000] j=3 size=64 sz=192
    [42949374.960000] j=4 size=1515870810 sz=1515871002
    
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    radii committed with AdrianBunk Mar 26, 2007
  4. @lge @AdrianBunk

    md: pass down BIO_RW_SYNC in raid{1,10}

    md raidX make_request functions strip off the BIO_RW_SYNC flag, thus
    introducing additional latency.
    
    Fixing this in raid1 and raid10 seems to be straightforward enough.
    
    For our particular usage case in DRBD, passing this flag improved some
    initialization time from ~5 minutes to ~5 seconds.
    
    Signed-off-by: Lars Ellenberg <lars@linbit.com>
    Acked-by: NeilBrown <neilb@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    lge committed with AdrianBunk Mar 26, 2007
  5. @neilbrown @AdrianBunk

    md: Fix bug where spares don't always get rebuilt properly when they …

    …become live
    
    If save_raid_disk is >= 0, then the device could be a device that is
    already in sync that is being re-added.  So we need to default this
    value to -1.
    
    Signed-off-by: Neil Brown <neilb@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    neilbrown committed with AdrianBunk Mar 26, 2007
  6. @neilbrown @AdrianBunk

    MD: Fix problem where hot-added drives are not resynced.

    If a drive is added with HOT_ADD_DISK rather than ADD_NEW_DISK,
    saved_raid_disk isn't initialised properly, and the drive can be
    included in the array without a resync.
    
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    neilbrown committed with AdrianBunk Mar 26, 2007
  7. @AdrianBunk

    USB: unusual_devs update for Sony P990i phone

    This patch (as846) adds the IGNORE_RESIDUE flag to the unusual_devs
    entry for Sony-Ericsson's P990i phone.
    
    Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
    Signed-off-by: Phil Dibowitz <phil@ipom.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Alan Stern committed with AdrianBunk Mar 26, 2007
  8. @jaclar @AdrianBunk

    USB: unusual_devs entry for Sony DSC-H5

    This patch (as749) extends the unusual_devs entry for the Sony DSC-T1 and
    T5 to cover the H5 as well.
    
    Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    jaclar committed with AdrianBunk Mar 26, 2007
Commits on Mar 25, 2007
  1. @maostu @AdrianBunk

    USB: unusual_devs.h entry for nokia 6233

    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    maostu committed with AdrianBunk Mar 25, 2007
  2. @AdrianBunk

    USB: unusual_devs.h for 0x046b:ff40

    American Megatrends did something wrong in their floppy emulator. It breaks
    with both kinds of MODE SENSE which our stack sends. Alan and I tried a few
    tweaks, and got LUNs sensed right, but US_FL_NO_WP_DETECT is still needed.
    
    I set the firmware bracket to 1.00 exactly, in case AMI or Sun fix it with a
    firmware update. Hey, you never know.
    
    Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
    Signed-off-by: Phil Dibowitz <phil@ipom.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Pete Zaitcev committed with AdrianBunk Mar 25, 2007
  3. @jaymzh @AdrianBunk

    USB: Fix UCR-61S2B unusual_dev entry

    Recently this entry's bcd scope was narrowed so as not to falsly apply
    to bcd's other than 0x0110. But while it breaks those of a larger bcd,
    it is still needed for those of a smaller bcd - so this changes the
    lower bcd limit to 0x0000.
    
    Signed-off-by: Phil Dibowitz <phil@ipom.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    jaymzh committed with AdrianBunk Mar 25, 2007
  4. @AdrianBunk

    unusual_devs update for UCR-61S2B

    The existing unusual_devs entry for the UCR-61S2B appears to have too
    wide a revision range.  It matches at least one device that doesn't
    respond to the initialization sequence.  Perhaps the sequence needs to
    be updated, or perhaps something else can be done.  For now, this patch
    (as764) restricts the range to include only the revision mentioned in
    the original comment.
    
    This resolves (for now!) Bugzilla entry #6950.
    
    Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    Alan Stern committed with AdrianBunk Mar 25, 2007
  5. @zaitcev @AdrianBunk

    USB storage: fix ipod ejecting issue

    Signed-off-by: Pete Zaitcev <zaitcev@yahoo.com>
    Signed-off-by: Phil Dibowitz <phil@ipom.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    Signed-off-by: Adrian Bunk <bunk@stusta.de>
    zaitcev committed with AdrianBunk Mar 25, 2007