PCI / PM: check all fields in pci_set_platform_pm()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 Jun 2016 14:25:33 +0000 (17:25 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 21 Jul 2016 20:55:53 +0000 (22:55 +0200)
commit6ec39cf5cd6f77e3ff9ff1da75b758a47f939888
tree710f72f4368e76730c415432b2c1640a5363d593
parent92d21ac74a9e3c09b0b01c764e530657e4c85c49
PCI / PM: check all fields in pci_set_platform_pm()

When assign new PCI platform PM operations check for all mandatory fields to
prevent NULL pointer dereference.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/pci.c