commit | 73c1ca2dda37a65d4ef218551a39794658a0ef2c | [log] [tgz] |
---|---|---|
author | Ross Lagerwall <ross.lagerwall@citrix.com> | Fri Dec 14 12:55:45 2018 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Dec 05 09:20:26 2019 +0100 |
tree | e97a1c8d9c2b24f4bc5aac7fa6196dbdb75c1723 | |
parent | 24d992bcaa5ac8f2f28e62f54d8db504b24ed0c1 [diff] |
xen/pciback: Check dev_data before using it [ Upstream commit 1669907e3d1abfa3f7586e2d55dbbc117b5adba2 ] If pcistub_init_device fails, the release function will be called with dev_data set to NULL. Check it before using it to avoid a NULL pointer dereference. Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>