1. 04 1月, 2013 1 次提交
    • G
      Drivers: platform: x86: remove __dev* attributes. · b859f159
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Joey Lee <jlee@novell.com>
      Cc: Matthew Garrett <mjg@redhat.com>
      Cc: Peter Feuerer <peter@piie.net>
      Cc: Corentin Chary <corentin.chary@gmail.com>
      Cc: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
      Cc: Robert Gerlach <khnz@gmx.de>
      Cc: Ike Panhc <ike.pan@canonical.com>
      Cc: Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b859f159
  2. 06 10月, 2012 1 次提交
  3. 27 3月, 2012 1 次提交
    • J
      drivers/platform/x86/amilo-rfkill.c::amilo_rfkill_probe() avoid NULL deref · 41603e97
      Jesper Juhl 提交于
      In drivers/platform/x86/amilo-rfkill.c::amilo_rfkill_probe() the call
      to dmi_first_match() may fail and return NULL. If it does return NULL,
      then we'll be dereferencing a NULL pointer in the rfkill_alloc() call
      where we do 'system_id->driver_data' --> KABOOM!
      
      Avoid that problem by testing for a NULL return value from
      dmi_first_match() and bailing out if it fails.
      
      I was a bit uncertain about what to return in the failure case. In the
      end I settled for -ENXIO as the most logical error to return.
      Signed-off-by: NJesper Juhl <jj@chaosbits.net>
      Signed-off-by: NMatthew Garrett <mjg@redhat.com>
      41603e97
  4. 12 3月, 2012 1 次提交