diff options
| author | Parav Pandit <[email protected]> | 2019-04-30 17:49:28 -0500 |
|---|---|---|
| committer | Alex Williamson <[email protected]> | 2019-05-07 11:23:13 -0600 |
| commit | 60e7f2c3fe9919cee9534b422865eed49f4efb15 (patch) | |
| tree | a254a69e9d27acf938c3a85755a8a7927a9c87bb /scripts/bpf_helpers_doc.py | |
| parent | 2c85f2bd519457073444ec28bbb4743a4e4237a7 (diff) | |
vfio/mdev: Avoid release parent reference during error path
During mdev parent registration in mdev_register_device(),
if parent device is duplicate, it releases the reference of existing
parent device.
This is incorrect. Existing parent device should not be touched.
Fixes: 7b96953bc640 ("vfio: Mediated device Core driver")
Reviewed-by: Cornelia Huck <[email protected]>
Reviewed-by: Kirti Wankhede <[email protected]>
Reviewed-by: Maxim Levitsky <[email protected]>
Signed-off-by: Parav Pandit <[email protected]>
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions