diff options
author | Kangjie Lu <kjlu@umn.edu> | 2019-03-12 03:33:28 -0500 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2019-03-20 13:37:12 +0300 |
commit | 106204b56f60abf1bead7dceb88f2be3e34433da (patch) | |
tree | 6ee50978ea524c4ff0b5b0ef25772f93a78a8b35 /drivers/rtc/rtc-cros-ec.c | |
parent | 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff) |
thunderbolt: property: Fix a NULL pointer dereference
In case kzalloc fails, the fix releases resources and returns
-ENOMEM to avoid the NULL pointer dereference.
Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/rtc/rtc-cros-ec.c')
0 files changed, 0 insertions, 0 deletions