summaryrefslogtreecommitdiff
path: root/sound/virtio/virtio_chmap.c
diff options
context:
space:
mode:
authorZheyu Ma <zheyuma97@gmail.com>2022-05-20 05:56:24 +0300
committerBartosz Golaszewski <brgl@bgdev.pl>2022-05-20 20:20:35 +0300
commit7869b481025c048ec6ea5b99acb14d057547de80 (patch)
tree78680eb5ef8a37ed223d09fe64d2a09b95e62663 /sound/virtio/virtio_chmap.c
parenta998ec3d7bae4f996bb9dcf6d0c76b6c812f267b (diff)
downloadlinux-7869b481025c048ec6ea5b99acb14d057547de80.tar.xz
gpio: ml-ioh: Convert to use managed functions pcim* and devm_*
When removing the module, we will get the following flaw: [ 14.204955] remove_proc_entry: removing non-empty directory 'irq/21', leaking at least 'gpio_ml_ioh' [ 14.205827] WARNING: CPU: 0 PID: 305 at fs/proc/generic.c:717 remove_proc_entry+0x389/0x3f0 ... [ 14.220613] ioh_gpio_remove+0xc5/0xe0 [gpio_ml_ioh] [ 14.221075] pci_device_remove+0x92/0x240 Fix this by using managed functions, this makes the error handling more simpler. Fixes: e971ac9a564a ("gpio: ml-ioh: use resource management for irqs") Signed-off-by: Zheyu Ma <zheyuma97@gmail.com> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'sound/virtio/virtio_chmap.c')
0 files changed, 0 insertions, 0 deletions