summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorShuah Khan <skhan@linuxfoundation.org>2022-05-17 23:36:30 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-05-19 19:57:17 +0300
commit8e04a7afce3d796c0c25219e30e16543e3fde2d2 (patch)
tree2308395dbedba75b1c788c01ca3a2981df10ad95 /include
parent5621a0bcb4b4dffc87d74330a9a31b868572f763 (diff)
downloadlinux-8e04a7afce3d796c0c25219e30e16543e3fde2d2.tar.xz
misc: alcor_pci: set NULL intfdata and clear pci master
alcor_pci doesn't set driver data to NULL and clear pci master when probe fails. Doesn't clear pci master from remove interface. Clearing pci master is necessary to disable bus mastering and prevent DMAs after driver removal. Fix alcor_pci_probe() to set driver data to NULL and clear pci master from its error path. Fix alcor_pci_remove() to clear pci master. Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Link: https://lore.kernel.org/r/20220517203630.45232-1-skhan@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions