1. 22 8月, 2012 13 次提交
  2. 21 8月, 2012 6 次提交
    • D
      tcm_fc: rcu_deref outside rcu lock/unlock section · 08a16208
      Denis Efremov 提交于
      Use rcu_dereference_protected in order to prevent lockdep
      complaint. Sequel of the patch 863555be
      
      Found by Linux Driver Verification project (linuxtesting.org).
      Signed-off-by: NDenis Efremov <yefremov.denis@gmail.com>
      Acked-by: NMark D. Rustad <mark.d.rustad@intel.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      08a16208
    • M
      tcm_vhost: Fix vhost_scsi_target structure alignment · 6de7145c
      Michael S. Tsirkin 提交于
      Here TRANSPORT_IQN_LEN is 224, which is a multiple of 4.
      Since vhost_tpgt is 2 bytes and abi_version is 4, the total size would
      be 230.  But gcc needs struct size be aligned to first field size, which
      is 4 bytes, so it pads the structure by extra 2 bytes to the total of
      232.
      
      This padding is very undesirable in an ABI:
      - it can not be initialized easily
      - it can not be checked easily
      - it can leak information between kernel and userspace
      
      Simplest solution is probably just to make the padding
      explicit.
      
      (v2: Add check for zero'ed backend->reserved field for VHOST_SCSI_SET_ENDPOINT
           and VHOST_SCSI_CLEAR_ENDPOINT ops as requested by MST)
      Reported-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      6de7145c
    • G
      gpu/mfd/usb: Fix USB randconfig problems · 8f057d7b
      Guenter Roeck 提交于
      Fix config warning:
      
      warning: ( ... && DRM_USB) selects USB which has unmet direct dependencies
      (USB_SUPPORT && USB_ARCH_HAS_HCD)
      
      and build error:
      ERROR: "usb_speed_string" [drivers/usb/core/usbcore.ko] undefined!
      
      by adding the missing dependency on USB_ARCH_HAS_HCD to DRM_UDL and DRM_USB.
      
      This exposes:
      drivers/video/Kconfig:36:error: recursive dependency detected!
      drivers/video/Kconfig:36:       symbol FB is selected by DRM_KMS_HELPER
      drivers/gpu/drm/Kconfig:28:     symbol DRM_KMS_HELPER is selected by DRM_UDL
      drivers/gpu/drm/udl/Kconfig:1:  symbol DRM_UDL depends on USB_ARCH_HAS_HCD
      drivers/usb/Kconfig:78: symbol USB_ARCH_HAS_HCD depends on USB_ARCH_HAS_OHCI
      drivers/usb/Kconfig:16: symbol USB_ARCH_HAS_OHCI depends on I2C
      drivers/i2c/Kconfig:5:  symbol I2C is selected by FB_DDC
      drivers/video/Kconfig:86:       symbol FB_DDC is selected by FB_CYBER2000_DDC
      drivers/video/Kconfig:385:      symbol FB_CYBER2000_DDC depends on FB_CYBER2000
      drivers/video/Kconfig:373:      symbol FB_CYBER2000 depends on FB
      
      which is due to drivers/usb/Kconfig:
      config USB_ARCH_HAS_OHCI
      	...
      	default y if ARCH_PNX4008 && I2C
      
      Fix by dropping I2C from the above dependency; logic is that this is not a
      platform dependency but a configuration dependency: the _architecture_ still
      supports USB even is I2C is not selected.
      
      This exposes:
      drivers/video/Kconfig:36:error: recursive dependency detected!
      drivers/video/Kconfig:36:       symbol FB is selected by DRM_KMS_HELPER
      drivers/gpu/drm/Kconfig:28:     symbol DRM_KMS_HELPER is selected by DRM_UDL
      drivers/gpu/drm/udl/Kconfig:1:  symbol DRM_UDL depends on USB_ARCH_HAS_HCD
      drivers/usb/Kconfig:78: symbol USB_ARCH_HAS_HCD depends on USB_ARCH_HAS_OHCI
      drivers/usb/Kconfig:17: symbol USB_ARCH_HAS_OHCI depends on MFD_TC6393XB
      drivers/mfd/Kconfig:396:        symbol MFD_TC6393XB depends on GPIOLIB
      drivers/gpio/Kconfig:35:        symbol GPIOLIB is selected by FB_VIA
      drivers/video/Kconfig:1560:     symbol FB_VIA depends on FB
      
      which can be fixed by having MFD_TC6393XB select GPIOLIB instead of depending on
      it.
      Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8f057d7b
    • M
      ideapad: add Lenovo IdeaPad Z570 support (part 3) · 0c7bbeb9
      Maxim Mikityanskiy 提交于
      The patch adds support for Lenovo IdeaPad Z570 laptop. It makes all special
      keys working, adds possibility to control fan like Windows does, controls
      Touchpad Disabled LED, toggles touchpad state via keyboard controller and
      corrects touchpad behavior on resume from suspend. It is new, modified
      version of patch. Now it does not depend on psmouse and does not need patching
      of input subsystem.
      Signed-off-by: NMaxim Mikityanskiy <maxtram95@gmail.com>
      
      This is the part 3 for fan control
      Signed-off-by: NIke Panhc <ike.pan@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      0c7bbeb9
    • M
      ideapad: add Lenovo IdeaPad Z570 support (part 2) · 07a4a4fc
      Maxim Mikityanskiy 提交于
      The patch adds support for Lenovo IdeaPad Z570 laptop. It makes all special
      keys working, adds possibility to control fan like Windows does, controls
      Touchpad Disabled LED, toggles touchpad state via keyboard controller and
      corrects touchpad behavior on resume from suspend. It is new, modified
      version of patch. Now it does not depend on psmouse and does not need patching
      of input subsystem.
      Signed-off-by: NMaxim Mikityanskiy <maxtram95@gmail.com>
      
      This is part 2 for touchpad toggle
      Signed-off-by: NIke Panhc <ike.pan@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      07a4a4fc
    • M
      ideapad: add Lenovo IdeaPad Z570 support (part 1) · 296f9fe0
      Maxim Mikityanskiy 提交于
      The patch adds support for Lenovo IdeaPad Z570 laptop. It makes all special
      keys working, adds possibility to control fan like Windows does, controls
      Touchpad Disabled LED, toggles touchpad state via keyboard controller and
      corrects touchpad behavior on resume from suspend. It is new, modified
      version of patch. Now it does not depend on psmouse and does not need patching
      of input subsystem.
      Signed-off-by: NMaxim Mikityanskiy <maxtram95@gmail.com>
      
      This is part 1 for special button handling.
      Signed-off-by: NIke Panhc <ike.pan@canonical.com>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      296f9fe0
  3. 20 8月, 2012 10 次提交
  4. 19 8月, 2012 3 次提交
  5. 18 8月, 2012 8 次提交