diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-11-09 15:55:34 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-11-10 08:53:45 +0300 |
commit | 3bc8492f009c76a9e77cad6e200b0748d3972fa0 (patch) | |
tree | 6c359501445272e2b60dc139ac51f888f6173599 /drivers/media/rc/rc-loopback.c | |
parent | ae5b2ec8ad5e017126cd4552220f25ce8a6b92e9 (diff) | |
download | linux-3bc8492f009c76a9e77cad6e200b0748d3972fa0.tar.xz |
skd: fix msix error handling
As reported by gcc -Wmaybe-uninitialized, the cleanup path for
skd_acquire_msix tries to free the already allocated msi-x vectors
in reverse order, but the index variable may not have been
used yet:
drivers/block/skd_main.c: In function ‘skd_acquire_irq’:
drivers/block/skd_main.c:3890:8: error: ‘i’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
This changes the failure path to skip releasing the interrupts
if we have not started requesting them yet.
Fixes: 180b0ae77d49 ("skd: use pci_alloc_irq_vectors")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/media/rc/rc-loopback.c')
0 files changed, 0 insertions, 0 deletions