]> git.baikalelectronics.ru Git - kernel.git/commit
uio/uio_pci_generic: fix return value changed in refactoring
authorMartin Ågren <martin.agren@gmail.com>
Thu, 22 Apr 2021 19:22:40 +0000 (21:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 11:25:27 +0000 (13:25 +0200)
commit62f354a258b6b61e14deff78a47d573c3ff8c755
tree8981654b6a37eb14911e2e4bbc7669b948ad0e77
parent2e8ad90175fafb3437e5faf56a45418b39237590
uio/uio_pci_generic: fix return value changed in refactoring

Commit c1998e244cd9 ("uio/uio_pci_generic: use device-managed function
equivalents") was able to simplify various error paths thanks to no
longer having to clean up on the way out. Some error paths were dropped,
others were simplified. In one of those simplifications, the return
value was accidentally changed from -ENODEV to -ENOMEM. Restore the old
return value.

Fixes: c1998e244cd9 ("uio/uio_pci_generic: use device-managed function equivalents")
Cc: stable <stable@vger.kernel.org>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Link: https://lore.kernel.org/r/20210422192240.1136373-1-martin.agren@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_pci_generic.c