diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-08-05 16:51:11 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-08-06 01:50:21 +0200 |
commit | ecc87eed7beeb50c0be0b73322d62135277ea2b0 (patch) | |
tree | ce32172e59a40bf99a451dfd91a6c384251e5963 /tools/lib/api/fs/debugfs.c | |
parent | 74d33293e467df61de1b1d8b2fbe29e550dec33b (diff) |
device property: fix potential NULL pointer dereference
In device_add_property_set() we check pset parameter for a NULL, but few lines
later we do a pointer arithmetic without check that will crash kernel in the
set_secondary_fwnode().
Here we check if pset parameter is NULL and return immediately.
Fixes: 16ba08d5c9ec (device property: Introduce firmware node type for platform data)
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/lib/api/fs/debugfs.c')
0 files changed, 0 insertions, 0 deletions