Age | Commit message (Collapse) | Author |
|
...and remove a stray comment
|
|
|
|
There is currently no interface to try again, other than detaching and
re-attaching the line discipline. It wouldn't make much sense either,
unless we've run into an unexpected state in the ELM327's firmware.
|
|
We now have proper locking, so dev->name is guaranteed to exist.
|
|
|
|
|
|
This was already the case in elmcan_ldisc_tx_worker(), but was missing
in elm327_send().
|
|
|
|
We can't go higher than 29 because of NR_LDISCS == 30 in Linux 5.0.
We can't go lower than 28 because of N_NULL == 27 in Linux 5.0.
|
|
There was a chance that something needed the elm object after it was
freed. Proper locking stops this.
|
|
When getting the CAN interface's name via the SIOCGIFNAME ioctl,
elm->dev->name may no longer exist because the interface is being shut
down.
Also, print the name of the interface to dmesg.
|
|
|
|
|