Skip to content
Commit e4dfdd58 authored by Kangjie Lu's avatar Kangjie Lu Committed by Mika Westerberg
Browse files

thunderbolt: Fix a missing check of kmemdup



kmemdup may fail and return NULL. The fix adds a check and returns
NULL in case it fails to avoid NULL pointer dereferecen.

Signed-off-by: default avatarKangjie Lu <kjlu@umn.edu>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 106204b5
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