diff options
author | Sebastian Andrzej Siewior <[email protected]> | 2018-03-22 16:22:33 +0100 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2018-03-29 10:38:14 +0200 |
commit | 39ffe39545cd5cb5b8cee9f0469165cf24dc62c2 (patch) | |
tree | bc75f5ff338a71b941e204c1611dc7d7cb44f891 /lib/memory-notifier-error-inject.c | |
parent | 90ca3859f5ea90050d00e695355934b37357e7bb (diff) |
iommu/amd: Take into account that alloc_dev_data() may return NULL
find_dev_data() does not check whether the return value alloc_dev_data()
is NULL. This was okay once because the pointer was returned once as-is.
Since commit df3f7a6e8e85 ("iommu/amd: Use is_attach_deferred
call-back") the pointer may be used within find_dev_data() so a NULL
check is required.
Cc: Baoquan He <[email protected]>
Fixes: df3f7a6e8e85 ("iommu/amd: Use is_attach_deferred call-back")
Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions