1. 20 11月, 2008 2 次提交
  2. 19 11月, 2008 1 次提交
  3. 18 11月, 2008 1 次提交
  4. 17 11月, 2008 6 次提交
  5. 16 11月, 2008 13 次提交
  6. 15 11月, 2008 17 次提交
    • A
      rtc: rtc-sun4v fixes, revised · cecf61bd
      Alessandro Zummo 提交于
      - simplified code
      - use platform_driver_probe
      - removed locking: it's provided by rtc subsystem
      Signed-off-by: NAlessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cecf61bd
    • T
      libata: improve phantom device detection · 6a6b97d3
      Tejun Heo 提交于
      Currently libata uses four methods to detect device presence.
      
      1. PHY status if available.
      2. TF register R/W test (only promotes presence, never demotes)
      3. device signature after reset
      4. IDENTIFY failure detection in SFF state machine
      
      Combination of the above works well in most cases but recently there
      have been a few reports where a phantom device causes unnecessary
      delay during probe.  In both cases, PHY status wasn't available.  In
      one case, it passed #2 and #3 and failed IDENTIFY with ATA_ERR which
      didn't qualify as #4.  The other failed #2 but as it passed #3 and #4,
      it still caused failure.
      
      In both cases, phantom device reported diagnostic failure, so these
      cases can be safely worked around by considering any !ATA_DRQ IDENTIFY
      failure as NODEV_HINT if diagnostic failure is set.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      6a6b97d3
    • L
      phylib: fix premature freeing of struct mii_bus · 3e44017b
      Lennert Buytenhek 提交于
      Commit 46abc021 ("phylib: give mdio
      buses a device tree presence") added a call to device_unregister() in
      a situation where the caller did not intend for the device to be
      freed yet, but apart from just unregistering the device from the
      system, device_unregister() does an additional put_device() that is
      intended to free it.
      
      The right function to use in this situation is device_del(), which
      unregisters the device from the system like device_unregister() does,
      but without dropping the reference count an additional time.
      
      Bug report from Bryan Wu <cooloney@kernel.org>.
      Signed-off-by: NLennert Buytenhek <buytenh@marvell.com>
      Tested-by: NBryan Wu <cooloney@kernel.org>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      3e44017b
    • J
      atl1: Do not enumerate options unsupported by chip · 3b259e36
      J. K. Cliburn 提交于
      Of the various WOL options provided in include/linux/ethtool.h, the
      L1 NIC supports only magic packet.  Remove all options except magic
      packet from the atl1 driver.
      Signed-off-by: NJay Cliburn <jcliburn@gmail.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      3b259e36
    • J
      atl1e: fix broken multicast by removing unnecessary crc inversion · 7ee0fddf
      J. K. Cliburn 提交于
      Inverting the crc after calling ether_crc_le() is unnecessary and breaks
      multicast. Remove it.
      Tested-by: NDavid Madore <david.madore@ens.fr>
      Signed-off-by: NJay Cliburn <jcliburn@gmail.com>
      Cc: stable@kernel.org
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      7ee0fddf
    • A
      gianfar: Fix DMA unmap invocations · 81183059
      Andy Fleming 提交于
      We weren't unmapping DMA memory, which will break when gianfar gets used
      on systems with more than 32-bits of memory.  Also, it's just plain wrong.
      Signed-off-by: NAndy Fleming <afleming@freescale.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      81183059
    • A
      net/ucc_geth: Fix oops in uec_get_ethtool_stats() · 18acfa25
      Anton Vorontsov 提交于
      p_{tx,rx}_fw_statistics_pram are special: they're available only when
      a device is open. If the device is closed, we should just fill the data
      with zeroes.
      
      Fixes the following oops:
      
      root@b1:~# ifconfig eth1 down
      root@b1:~# ethtool -S eth1
      Unable to handle kernel paging request for data at address 0x00000000
      Faulting instruction address: 0xc01e1dcc
      Oops: Kernel access of bad area, sig: 11 [#1]
      [...]
      NIP [c01e1dcc] uec_get_ethtool_stats+0x98/0x124
      LR [c0287cc8] ethtool_get_stats+0xfc/0x23c
      Call Trace:
      [cfaadde0] [c0287ca8] ethtool_get_stats+0xdc/0x23c (unreliable)
      [cfaade20] [c0288340] dev_ethtool+0x2fc/0x588
      [cfaade50] [c0285648] dev_ioctl+0x290/0x33c
      [cfaadea0] [c0272238] sock_ioctl+0x80/0x2ec
      [cfaadec0] [c00b5ae4] vfs_ioctl+0x40/0xc0
      [cfaadee0] [c00b5fa8] do_vfs_ioctl+0x78/0x20c
      [cfaadf10] [c00b617c] sys_ioctl+0x40/0x74
      [cfaadf40] [c00142d8] ret_from_syscall+0x0/0x38
      [...]
      ---[ end trace b941007b2dfb9759 ]---
      Segmentation fault
      
      p.s. While at it, also remove u64 casts, they aren't needed.
      Signed-off-by: NAnton Vorontsov <avorontsov@ru.mvista.com>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      18acfa25
    • D
      niu: Bump driver version and release date. · d8c3e23d
      David S. Miller 提交于
      This driver is pretty mature, and the worst of the known
      problems has been fixed (the 32-bit failures due to readq
      implementation).
      
      So let's finally give it a version of 1.0
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d8c3e23d
    • S
      NIU: Add Sun CP3260 ATCA blade support · e3e081e1
      Santwona Behera 提交于
      This patch adds support for the Sun CP3260 ATCA blade which is
      a N2 based ATCA blade with 2 NIU ports. The NIU ports do not
      have on-board PHY.
      Signed-off-by: NSantwona Behera <santwona.behera@sun.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e3e081e1
    • R
      Create/use more directory structure in the Documentation/ tree. · 31c00fc1
      Randy Dunlap 提交于
      Create Documentation/blockdev/ sub-directory and populate it.
      Populate the Documentation/serial/ sub-directory.
      Move MSI-HOWTO.txt to Documentation/PCI/.
      Move ioctl-number.txt to Documentation/ioctl/.
      Update all relevant 00-INDEX files.
      Update all relevant Kconfig files and source files.
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      31c00fc1
    • S
      [S390] dasd: log sense for fatal errors · a9cffb22
      Stefan Haberland 提交于
      The logging of sense data for fatal errors was accidentally removed
      during Hyper PAV implementation.
      Signed-off-by: NStefan Haberland <stefan.haberland@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      a9cffb22
    • C
      [S390] cio: Fix refcount after moving devices. · 85acc407
      Cornelia Huck 提交于
      In ccw_device_move_to_orphanage(), a replacing ccw_device
      is searched via get_{disc,orphaned}_ccwdev_by_dev_id()
      which obtain a reference on the returned ccw_device.
      This reference must be given up again after the device
      has been moved to its new parent.
      Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      85acc407
    • C
      [S390] kvm_s390: Fix oops in virtio device detection with "mem=" · cc835f78
      Christian Borntraeger 提交于
      The current virtio model on s390 has the descriptor page above the main
      memory. The guest virtio detection will oops if the mem= parameter is
      used to reduce/change the memory size.
      We have to use real_memory_size instead of max_pfn to detect the virtio
      descriptor pages.
      Signed-off-by: NChristian Borntraeger <borntraeger@de.ibm.com>
      cc835f78
    • H
    • M
      V4L/DVB (9624): CVE-2008-5033: fix OOPS on tvaudio when controlling bass/treble · 01a1a3cc
      Mauro Carvalho Chehab 提交于
      This bug were supposed to be fixed by 5ba2f67a,
      where a call to NULL happens.
      
      Not all tvaudio chips allow controlling bass/treble. So, the driver
      has a table with a flag to indicate if the chip does support it.
      
      Unfortunately, the handling of this logic were broken for a very long
      time (probably since the first module version). Due to that, an OOPS
      were generated for devices that don't support bass/treble.
      
      This were the resulting OOPS message before the patch, with debug messages
      enabled:
      
      tvaudio' 1-005b: VIDIOC_S_CTRL
      BUG: unable to handle kernel NULL pointer dereference at 00000000
      IP: [<00000000>]
      *pde = 22fda067 *pte = 00000000
      Oops: 0000 [#1] SMP
      Modules linked in: snd_hda_intel snd_seq_dummy snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device
      snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_hwdep snd soundcore tuner_simple tuner_types tea5767 tuner
      tvaudio bttv bridgebnep rfcomm l2cap bluetooth it87 hwmon_vid hwmon fuse sunrpc ipt_REJECT
      nf_conntrack_ipv4 iptable_filter ip_tables ip6t_REJECT xt_tcpudp nf_conntrack_ipv6 xt_state nf_conntrack
      ip6table_filter ip6_tables x_tables ipv6 dm_mirrordm_multipath dm_mod configfs videodev v4l1_compat
      ir_common 8139cp compat_ioctl32 v4l2_common 8139too videobuf_dma_sg videobuf_core mii btcx_risc tveeprom
      i915 button snd_page_alloc serio_raw drm pcspkr i2c_algo_bit i2c_i801 i2c_core iTCO_wdt
      iTCO_vendor_support sr_mod cdrom sg ata_generic pata_acpi ata_piix libata sd_mod scsi_mod ext3 jbdmbcache
      uhci_hcd ohci_hcd ehci_hcd [last unloaded: soundcore]
      
      Pid: 15413, comm: qv4l2 Not tainted (2.6.25.14-108.fc9.i686 #1)
      EIP: 0060:[<00000000>] EFLAGS: 00210246 CPU: 0
      EIP is at 0x0
      EAX: 00008000 EBX: ebd21600 ECX: e2fd9ec4 EDX: 00200046
      ESI: f8c0f0c4 EDI: f8c0f0c4 EBP: e2fd9d50 ESP: e2fd9d2c
       DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
      Process qv4l2 (pid: 15413, ti=e2fd9000 task=ebe44000 task.ti=e2fd9000)
      Stack: f8c0c6ae e2ff2a00 00000d00 e2fd9ec4 ebc4e000 e2fd9d5c f8c0c448 00000000
             f899c12a e2fd9d5c f899c154 e2fd9d68 e2fd9d80 c0560185 e2fd9d88 f8f3e1d8
             f8f3e1dc ebc4e034 f8f3e18c e2fd9ec4 00000000 e2fd9d90 f899c286 c008561c
      Call Trace:
       [<f8c0c6ae>] ? chip_command+0x266/0x4b6 [tvaudio]
       [<f8c0c448>] ? chip_command+0x0/0x4b6 [tvaudio]
       [<f899c12a>] ? i2c_cmd+0x0/0x2f [i2c_core]
       [<f899c154>] ? i2c_cmd+0x2a/0x2f [i2c_core]
       [<c0560185>] ? device_for_each_child+0x21/0x49
       [<f899c286>] ? i2c_clients_command+0x1c/0x1e [i2c_core]
       [<f8f283d8>] ? bttv_call_i2c_clients+0x14/0x16 [bttv]
       [<f8f23601>] ? bttv_s_ctrl+0x1bc/0x313 [bttv]
       [<f8f23445>] ? bttv_s_ctrl+0x0/0x313 [bttv]
       [<f8b6096d>] ? __video_do_ioctl+0x1f84/0x3726 [videodev]
       [<c05abb4e>] ? sock_aio_write+0x100/0x10d
       [<c041b23e>] ? kmap_atomic_prot+0x1dd/0x1df
       [<c043a0c9>] ? enqueue_hrtimer+0xc2/0xcd
       [<c04f4fa4>] ? copy_from_user+0x39/0x121
       [<f8b622b9>] ? __video_ioctl2+0x1aa/0x24a [videodev]
       [<c04054fd>] ? do_notify_resume+0x768/0x795
       [<c043c0f7>] ? getnstimeofday+0x34/0xd1
       [<c0437b77>] ? autoremove_wake_function+0x0/0x33
       [<f8b62368>] ? video_ioctl2+0xf/0x13 [videodev]
       [<c048c6f0>] ? vfs_ioctl+0x50/0x69
       [<c048c942>] ? do_vfs_ioctl+0x239/0x24c
       [<c048c995>] ? sys_ioctl+0x40/0x5b
       [<c0405bf2>] ? syscall_call+0x7/0xb
       [<c0620000>] ? cpuid4_cache_sysfs_exit+0x3d/0x69
       =======================
      Code:  Bad EIP value.
      EIP: [<00000000>] 0x0 SS:ESP 0068:e2fd9d2c
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      01a1a3cc
    • M
      V4L/DVB (9623): tvaudio: Improve debug msg by printing something more human · c6241b6c
      Mauro Carvalho Chehab 提交于
      Before the patch, the used ioctl were printed as an hexadecimal code,
      hard to be understand without consulting the way _IO macros work.
      Instead, use the V4L default handler for printing such errors into a way
      that would be easier to understand.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      c6241b6c
    • M
      V4L/DVB (9622): tvaudio: Improve comments and remove a unneeded prototype · 41f5230f
      Mauro Carvalho Chehab 提交于
      Some comments are not clear enough. Improve it to allow a better
      understanding of the driver behavior.
      
      While there, remove an unneeded struct prototype.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      41f5230f