diff options
| author | Juergen Gross <[email protected]> | 2023-03-28 08:45:49 +0000 |
|---|---|---|
| committer | Juergen Gross <[email protected]> | 2023-04-24 05:27:10 +0000 |
| commit | fae65ef3a148079103ae935107c62f7830ab52c5 (patch) | |
| tree | 6e1381d7304ec032d39e3b4b24ff057f33866183 /lib/test_vmalloc.c | |
| parent | Linux 6.3 (diff) | |
| download | kernel-fae65ef3a148079103ae935107c62f7830ab52c5.tar.gz kernel-fae65ef3a148079103ae935107c62f7830ab52c5.zip | |
xen/pciback: don't call pcistub_device_put() under lock
pcistub_device_put() shouldn't be called under spinlock, as it can
sleep.
For this reason pcistub_device_get_pci_dev() needs to be modified:
instead of always calling pcistub_device_get() just do the call of
pcistub_device_get() only if it is really needed. This removes the
need to call pcistub_device_put().
Reported-by: Dan Carpenter <[email protected]>
Link: https://lore.kernel.org/lkml/Y+JUIl64UDmdkboh@kadam/
Signed-off-by: Juergen Gross <[email protected]>
Reviewed-by: Oleksandr Tyshchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'lib/test_vmalloc.c')
0 files changed, 0 insertions, 0 deletions
