| Summary: | `modprobe -r` doesnt work | ||
|---|---|---|---|
| Product: | Busybox | Reporter: | Mike Frysinger <vapier> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | busybox-cvs |
| Priority: | P5 | ||
| Version: | 1.14.x | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
| Attachments: |
Fix.
Additional fix |
||
|
Description
Mike Frysinger
2009-05-06 00:33:43 UTC
Please attach your .config i posted my .config. look at the end of my summary comment. Created attachment 353 [details]
Fix.
Thanks, I reproduced it.
Please try this fix, or try latest git.
maybe i'm missing something, but it doesnt seem to work for me ...
here's the modules.dep file snippet:
kernel/net/irda/ircomm/ircomm-tty.ko: kernel/net/irda/ircomm/ircomm.ko kernel/net/irda/irda.ko kernel/lib/crc-ccitt.ko
kernel/net/irda/ircomm/ircomm.ko: kernel/net/irda/irda.ko kernel/lib/crc-ccitt.ko
kernel/net/irda/irda.ko: kernel/lib/crc-ccitt.ko
kernel/lib/crc-ccitt.ko:
root:/> lsmod
Not tainted
root:/> modprobe ircomm-tty
root:/> lsmod
Not tainted
ircomm_tty 16628 0 - Live 0x02b08000
ircomm 7472 1 ircomm_tty, Live 0x02b54000
irda 81268 2 ircomm_tty,ircomm, Live 0x02b60000
crc_ccitt 1136 1 irda, Live 0x0292f800
root:/> modprobe -r ircomm-tty
modprobe: failed to unload module ircomm-tty: unknown symbol in module, or unknown parameter
root:/> lsmod
Not tainted
ircomm 7472 0 - Live 0x02b54000
irda 81268 1 ircomm, Live 0x02b60000
crc_ccitt 1136 1 irda, Live 0x0292f800
root:/> rmmod ircomm
root:/> rmmod irda
root:/> rmmod crc_ccitt
root:/> lsmod
Not tainted
running the `modprobe -r` step through strace shows that it tries to delete the module twice:
delete_module("ircomm_tty") = 0
delete_module("ircomm_tty") = -1 ENOENT (No such file or directory)
Created attachment 359 [details]
Additional fix
Reproduced that also. Please try attached patch.
seems to be working for me now, thanks |