diff options
| author | Ross Lagerwall <ross.lagerwall@citrix.com> | 2018-12-14 12:55:45 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-05 15:26:50 +0100 |
| commit | fd2c3d2f6dc26502913b98f728e19e849302bf01 (patch) | |
| tree | 2c87d1b37bb057fcbf2b8520e2125aedefee075f /scripts | |
| parent | 562b5ed381680e9804efd1f86bb23e86459798d0 (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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
