The way airo.c keeps track of all its devices is complicated and buggy
as well (del_airo_dev forgets to free the memory add_airo_dev allocates).
It's cleaner to use the standard list primitives.
While we're at it, it's not necessary to put PCI cards in the list, because
the kernel already keeps track of them. We can take advantage of it and
use the .remove callback as it was meant to be.
This makes /sys/bus/pci/drivers/airo/{,un}bind work.
Signed-off-by: Michal Schmidt <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
It's unnecessary to check for NULL before calling kfree().
Signed-off-by: Michal Schmidt <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
The airo driver leaks memory if request_irq() fails.
Signed-off-by: Michal Schmidt <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
This is nf_conntrack_sane, a netfilter connection tracking helper module
for the SANE protocol used by the 'saned' daemon to make scanners available
via network. The SANE protocol uses separate control & data connections,
similar to passive FTP. The helper module is needed to recognize the data
connection as RELATED to the control one.
Signed-off-by: Michal Schmidt <[email protected]>
Signed-off-by: Patrick McHardy <[email protected]>
Signed-off-by: David S. Miller <[email protected]>