Skip to content
Commit 6d84bf47 authored by Kangjie Lu's avatar Kangjie Lu Committed by Paul Gortmaker
Browse files

thunderbolt: property: Fix a NULL pointer dereference

commit 106204b5

 upstream.

In case kzalloc fails, the fix releases resources and returns
-ENOMEM to avoid the NULL pointer dereference.

Signed-off-by: default avatarKangjie Lu <kjlu@umn.edu>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent f6a1fc9e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment