04 Feb, 2010

6 commits


03 Feb, 2010

11 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (23 commits)
    connector: Delete buggy notification code.
    be2net: use eq-id to calculate cev-isr reg offset
    Bluetooth: Use the control channel for raw HID reports
    Bluetooth: Add DFU driver for Atheros Bluetooth chipset AR3011
    Bluetooth: Redo checks in IRQ handler for shared IRQ support
    Bluetooth: Fix memory leak in L2CAP
    Bluetooth: Remove double free of SKB pointer in L2CAP
    cdc_ether: Partially revert "usbnet: Set link down initially ..."
    be2net: Fix memset() arg ordering.
    bonding: bond_open error return value
    ixgbe: if ixgbe_copy_dcb_cfg is going to fail learn about it early
    ixgbe: set the correct DCB bit for pg tx settings
    igbvf: fix issue w/ mapped_as_page being left set after unmap
    drivers/net: ks8851_mll ethernet network driver
    be2net: Bug fix to support newer generation of BE ASIC
    starfire: clean up properly if firmware loading fails
    mac80211: fix NULL pointer dereference when ftrace is enabled
    netfilter: ctnetlink: fix expectation mask dump
    ipv6: conntrack: Add member of user to nf_ct_frag6_queue structure
    ath9k: fix eeprom INI values override for 2GHz-only cards
    ...

    Linus Torvalds
     
  • This is the counterpart to cba767175becadc5c4016cceb7bfdd2c7fe722f4
    ("pktcdvd: remove broken dev_t export of class devices"). Device is not
    registered using dev_t, so it should not be destroyed using device_destroy
    which looks up the device by dev_t. This will fail and adding the device
    again will fail with the "duplicate name" error. This is fixed using
    device_unregister instead of device_destroy.

    Signed-off-by: Thadeu Lima de Souza Cascardo
    Cc: Kay Sievers
    Cc: Peter Osterlund
    Cc: Al Viro
    Cc: Jens Axboe
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Thadeu Lima de Souza Cascardo
     
  • Move the ulite_console_setup to the .devinit section since it might be
    called on probe, which is in devinit. Fixes the crash below where the
    uartlite hw is probed after the .init section is freed from the kernel.

    uartlite: ttyUL0 at MMIO 0xc8000100 (irq = 30) is a uartlite
    BUG: unable to handle kernel NULL pointer dereference at (null)
    IP: [] ulite_console_setup+0x6f/0xa8
    *pdpt = 0000000036fb0001 *pde = 0000000000000000
    Oops: 0000 [#1] PREEMPT SMP
    last sysfs file: /sys/devices/pci0000:00/0000:00:1f.1/host0/uevent
    Modules linked in: puffin(+) serio_raw

    Pid: 151, comm: modprobe Not tainted (2.6.31.5-1.0.b1-b1 #1) POULSBO
    EIP: 0060:[] EFLAGS: 00010246 CPU: 0
    EIP is at ulite_console_setup+0x6f/0xa8
    EAX: c16ec824 EBX: c16ec824 ECX: c176719f EDX: 00000000
    ESI: 00000000 EDI: c17b42c4 EBP: f6fd1cf0 ESP: f6fd1cd8
    DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
    Process modprobe (pid: 151, ti=f6fd0000 task=f6fa1020 task.ti=f6fd0000)
    Stack:
    c1031f51 00000000 00000000 00000246 c182237c f7742000 f6fd1d5c c11fd316
    c16ec85c f77420d4 0000001e 00000000 00000000 c1633e78 4f494d4d 63783020
    30303038 00303031 f6fd1d3c c10e0786 f6fd1d48 00000000 f6fd1d48 00000000
    Call Trace:
    [] ? register_console+0xf6/0x1fc
    [] ? uart_add_one_port+0x237/0x2bb
    [] ? sysfs_add_one+0x13/0xd3
    [] ? sysfs_do_create_link+0xba/0xfc
    [] ? ulite_probe+0x198/0x1eb
    [] ? platform_drv_probe+0xc/0xe
    [] ? driver_probe_device+0x79/0x105
    [] ? __device_attach+0x28/0x30
    [] ? bus_for_each_drv+0x3d/0x67
    [] ? device_attach+0x44/0x58
    [] ? __device_attach+0x0/0x30
    [] ? bus_probe_device+0x1f/0x34
    [] ? device_add+0x385/0x4c0
    [] ? _write_unlock+0x8/0x1f
    [] ? platform_device_add+0xd9/0x11c
    [] ? mfd_add_devices+0x165/0x1bc
    [] ? puffin_probe+0x2d0/0x390 [puffin]
    [] ? pci_match_device+0xa0/0xa7
    [] ? local_pci_probe+0xe/0x10
    [] ? pci_device_probe+0x43/0x66
    [] ? driver_probe_device+0x79/0x105
    [] ? __driver_attach+0x43/0x5f
    [] ? bus_for_each_dev+0x3d/0x67
    [] ? driver_attach+0x14/0x16
    [] ? __driver_attach+0x0/0x5f
    [] ? bus_add_driver+0xf9/0x220
    [] ? driver_register+0x8b/0xeb
    [] ? __pci_register_driver+0x43/0x9f
    [] ? __blocking_notifier_call_chain+0x40/0x4c
    [] ? puffin_init+0x0/0x48 [puffin]
    [] ? puffin_init+0x17/0x48 [puffin]
    [] ? do_one_initcall+0x4c/0x131
    [] ? sys_init_module+0xa7/0x1b7
    [] ? syscall_call+0x7/0xb
    Code: 6e 74 00 00 00 92 33 00 00 18 00 0e 01 73 79 6e 63 65 2d 72 65 67 69 73 74 72 79 0c 00 49 32
    00 00 14 00 09 01 61 6c 73 61 2d 69 66 6f 00 00 00 42 37 00 00 10 00 07 01 6b 69 6c 6c 61 6c 6c
    EIP: [] ulite_console_setup+0x6f/0xa8 SS:ESP 0068:f6fd1cd8
    CR2: 0000000000000000

    Signed-off-by: Richard Röjfors
    Acked-by: Peter Korsgaard
    Cc: Alan Cox
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Richard Röjfors
     
  • The probe function passes a pointer to a struct fb_info to
    platform_set_drvdata(), so don't interpret the return value of
    platform_get_drvdata() as a pointer to struct imxfb_info.

    The original imxfb_info *fbi backlight_power was NULL but in imxfb_suspend
    it was 4 resulting in an oops as imxfb_suspend calls
    imxfb_disable_controller(fbi) which in turn has

    if (fbi->backlight_power)
    fbi->backlight_power(0);

    Signed-off-by: Uwe Kleine-König
    Acked-by: Sascha Hauer
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Uwe Kleine-König
     
  • write_kmem() used to assume vwrite() always return the full buffer length.
    However now vwrite() could return 0 to indicate memory hole. This
    creates a bug that "buf" is not advanced accordingly.

    Fix it to simply ignore the return value, hence the memory hole.

    Signed-off-by: Wu Fengguang
    Cc: Andi Kleen
    Cc: Benjamin Herrenschmidt
    Cc: Christoph Lameter
    Cc: Ingo Molnar
    Cc: Tejun Heo
    Cc: Nick Piggin
    Cc: KAMEZAWA Hiroyuki
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wu Fengguang
     
  • Otherwise vmalloc_to_page() will BUG().

    This also makes the kmem read/write implementation aligned with mem(4):
    "References to nonexistent locations cause errors to be returned." Here we
    return -ENXIO (inspired by Hugh) if no bytes have been transfered to/from
    user space, otherwise return partial read/write results.

    Signed-off-by: KAMEZAWA Hiroyuki
    Signed-off-by: Wu Fengguang
    Cc: Greg Kroah-Hartman
    Cc: Hugh Dickins
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    KAMEZAWA Hiroyuki
     
  • Add missing braces for multiline 'if' statements in fm3130_probe.

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

    Sergey Matyukevich
     
  • Fix the kernel oops when dev_dbg is called with mx3_fbi->txd == NULL

    Fix the late initialisation of mx3fb->backlight_level. If not, in the
    chain of function started by init_fb_chan(), in __blank() call
    sdc_set_brightness(mx3fb, mx3fb->backlight_level) that will shut down the
    CONTRAST PWM output.

    Signed-off-by: Alberto Panizzo
    Acked-by: Guennadi Liakhovetski gmx.de>
    Cc: Sascha Hauer
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alberto Panizzo
     
  • On Tue, Feb 02, 2010 at 02:57:14PM -0800, Greg KH (gregkh@suse.de) wrote:
    > > There are at least two ways to fix it: using a big cannon and a small
    > > one. The former way is to disable notification registration, since it is
    > > not used by anyone at all. Second way is to check whether calling
    > > process is root and its destination group is -1 (kind of priveledged
    > > one) before command is dispatched to workqueue.
    >
    > Well if no one is using it, removing it makes the most sense, right?
    >
    > No objection from me, care to make up a patch either way for this?

    Getting it is not used, let's drop support for notifications about
    (un)registered events from connector.
    Another option was to check credentials on receiving, but we can always
    restore it without bugs if needed, but genetlink has a wider code base
    and none complained, that userspace can not get notification when some
    other clients were (un)registered.

    Kudos for Sebastian Krahmer , who found a bug in the
    code.

    Signed-off-by: Evgeniy Polyakov
    Acked-by: Greg Kroah-Hartman
    Signed-off-by: David S. Miller

    Evgeniy Polyakov
     
  • * 'for-linus' of git://git.kernel.dk/linux-2.6-block:
    cfq-iosched: Do not idle on async queues
    blk-cgroup: Fix potential deadlock in blk-cgroup
    block: fix bugs in bio-integrity mempool usage
    block: fix bio_add_page for non trivial merge_bvec_fn case
    drbd: null dereference bug
    drbd: fix max_segment_size initialization

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
    random: Remove unused inode variable
    crypto: padlock-sha - Add import/export support
    random: drop weird m_time/a_time manipulation

    Linus Torvalds
     

02 Feb, 2010

11 commits

  • cev-isr reg offset for each function is better calculated using (any) eq-id
    alloted to that function instead of using pci-func number(which
    does not work in some configurations...)

    Signed-off-by: Sathya Perla
    Signed-off-by: David S. Miller

    Sathya Perla
     
  • This patch improves disable_controller() in the r8a66597-hdc
    driver to disable all interrupts and clear status flags. It
    also makes sure that disable_controller() is called during
    probe(). This fixes the relatively rare case of unexpected
    pending interrupts after kexec reboot.

    Signed-off-by: Magnus Damm
    Acked-by: Yoshihiro Shimoda
    Signed-off-by: Paul Mundt

    Magnus Damm
     
  • The spi_sh_msiof.c driver presently misconfigures REDG and TEDG. TEDG==0
    outputs data at the **rising edge** of the clock and REDG==0 samples data
    at the **falling edge** of the clock. Therefore for SPI, TEDG must be
    equal to REDG, otherwise the last byte received is not sampled in SPI
    mode 3.

    This brings the driver in line with the SH7723 HW Reference Manual
    settings documented in Figures 20.20 and 20.21 ("SPI Clock and data
    timing").

    Signed-off-by: Markus Pietrek
    Acked-by: Magnus Damm
    Signed-off-by: Paul Mundt

    Markus Pietrek
     
  • Thanks-to: Hartmut for pointing me the problem
    and testing the fix.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • The previous changeset left behind an unused inode variable.
    This patch removes it.

    Reported-by: Stephen Rothwell
    Signed-off-by: Herbert Xu

    Herbert Xu
     
  • As the padlock driver for SHA uses a software fallback to perform
    partial hashing, it must implement custom import/export functions.
    Otherwise hmac which depends on import/export for prehashing will
    not work with padlock-sha.

    Reported-by: Wolfgang Walter
    Signed-off-by: Herbert Xu

    Herbert Xu
     
  • No other driver does anything remotely like this that I know of except
    for the tty drivers, and I can't see any reason for random/urandom to do
    it. In fact, it's a (trivial, harmless) timing information leak. And
    obviously, it generates power- and flash-cycle wasting I/O, especially
    if combined with something like hwrngd. Also, it breaks ubifs's
    expectations.

    Signed-off-by: Matt Mackall
    Signed-off-by: Herbert Xu

    Matt Mackall
     
  • * 'drm-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
    drm/radeon/kms: Fix oops after radeon_cs_parser_init() failure.
    drm/radeon/kms: move radeon KMS on/off switch out of staging.
    drm/radeon/kms: Bailout of blit if error happen & protect with mutex V3
    drm/vmwgfx: Don't send bad flags to the host
    drm/vmwgfx: Request SVGA version 2 and bail if not found
    drm/vmwgfx: Correctly detect 3D
    drm/ttm: remove unnecessary save_flags and ttm_flag_masked in ttm_bo_util.c
    drm/kms: Remove incorrect comment in struct drm_mode_modeinfo
    drm/ttm: remove padding from ttm_ref_object on 64bit builds
    drm/radeon/kms: release agp on error.
    drm/kms/radeon/agp: Move the check of the aper_size after drm_acp_acquire and drm_agp_info
    drm/kms/radeon/agp: Fix warning, format ‘%d’ expects type ‘int’, but argument 4 has type ‘size_t’
    drm/ttm: Avoid conflicting reserve_memtype during ttm_tt_set_page_caching.
    drm/kms/radeon: pick digitial encoders smarter. (v3)
    drm/radeon/kms: use active device to pick connector for encoder
    drm/radeon/kms: fix incorrect logic in DP vs eDP connector checking.

    Linus Torvalds
     
  • …git/tip/linux-2.6-tip

    * 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86/agp: Fix agp_amd64_init regression
    x86: Add quirk for Intel DG45FC board to avoid low memory corruption
    x86: Add Dell OptiPlex 760 reboot quirk
    x86, UV: Fix RTC latency bug by reading replicated cachelines
    oprofile/x86: add Xeon 7500 series support
    oprofile/x86: fix crash when profiling more than 28 events
    lib/dma-debug.c: mark file-local struct symbol static.
    x86/amd-iommu: Fix deassignment of a device from the pt_domain
    x86/amd-iommu: Fix IOMMU-API initialization for iommu=pt
    x86/amd-iommu: Fix NULL pointer dereference in __detach_device()
    x86/amd-iommu: Fix possible integer overflow

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/voltage-2.6:
    regulator: Specify REGULATOR_CHANGE_STATUS for WM835x LED constraints

    Linus Torvalds
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc:
    powerpc: TIF_ABI_PENDING bit removal
    powerpc/pseries: Fix xics build without CONFIG_SMP
    powerpc/4xx: Add pcix type 1 transactions
    powerpc/pci: Add missing call to header fixup
    powerpc/pci: Add missing hookup to pci_slot
    powerpc/pci: Add calls to set_pcie_port_type() and set_pcie_hotplug_bridge()
    powerpc/40x: Update the PowerPC 40x board defconfigs
    powerpc/44x: Update PowerPC 44x board defconfigs

    Linus Torvalds
     

01 Feb, 2010

12 commits