1. 28 8月, 2013 1 次提交
    • G
      USB: gadget: audit sysfs attribute permissions · ce26bd23
      Greg Kroah-Hartman 提交于
      Convert all USB gadget sysfs attributes to use the _RO or _RW variants,
      to make them easier to audit and ensure that the permissions are
      correct.
      
      Note, two are left using the DEVICE_ATTR() macro, as there is no
      DEVICE_ATTR_WO() in Linus's tree, that will happen after 3.12-rc1 is
      out, a follow-on patch will be sent then.
      Reviewed-by: NFelipe Balbi <balbi@ti.com>
      Acked-by: NFelipe Balbi <balbi@ti.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      
      --
       drivers/usb/gadget/composite.c      |    8 +++-----
       drivers/usb/gadget/dummy_hcd.c      |    8 ++++----
       drivers/usb/gadget/f_mass_storage.c |   14 ++++++--------
       drivers/usb/gadget/net2272.c        |    4 ++--
       drivers/usb/gadget/net2280.c        |   18 +++++++++---------
       drivers/usb/gadget/storage_common.c |   25 ++++++++++++-------------
       drivers/usb/gadget/udc-core.c       |   14 +++++++-------
       7 files changed, 43 insertions(+), 48 deletions(-)
      ce26bd23
  2. 26 8月, 2013 3 次提交
  3. 24 8月, 2013 5 次提交
  4. 20 8月, 2013 4 次提交
  5. 19 8月, 2013 1 次提交
    • Y
      USB: serial: fix stringify operator in usb-serial-simple · 68c91d37
      Yann Droneaud 提交于
      usb-serial-simple uses an unknown stringify macro that make
      all drivers being named "stringify(vendor)".
      
      This can be a problem when two drivers have the same (wrong) name:
      
          kernel: usbcore: registered new interface driver usb_serial_simple
          kernel: usbserial: USB Serial support registered for stringify(vendor)
          kernel Error: Driver 'stringify(vendor)' is already registered, aborting...
          kernel: usbserial: problem -16 when registering driver stringify(vendor)
          kernel: usbserial: USB Serial deregistering driver stringify(vendor)
          kernel: usbcore: deregistering interface driver usb_serial_simple
      
      Before the fix:
      
          $ strings drivers/usb/serial/usb-serial-simple.o
          usb_serial_simple
          stringify(vendor)
      
      After the fix:
      
          $ strings drivers/usb/serial/usb-serial-simple.o
          usb_serial_simple
          funsoft
          flashloader
          vivopay
          moto_modem
          hp4x
          suunto
          siemens_mpi
      
      This patch makes usb-serial-simple use the correct stringify operator.
      Signed-off-by: NYann Droneaud <ydroneaud@opteya.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      68c91d37
  6. 16 8月, 2013 14 次提交
  7. 15 8月, 2013 12 次提交