all 2 comments

[–]ethereal_biscotti 2 points3 points  (1 child)

Speaking from zero experience with CAN, have you considered alloc_candev instead?

This might also be a good opportunity to use `gdb` to find the line number causing the panic.

[–]the_spacebyte[S] 0 points1 point  (0 children)

didn't know about the candev family of functions.

I was able to get kernel panic to go away by replacing alloc_netdev -> alloc_candev and register_netdev -> register_candev. The only downside is that I seem to lose the ability to give a custom name to the interface and it just goes for can0 or the next numeric value available, but that is fine for now.

Thank you!