diff --git a/net/can/af_can.c b/net/can/af_can.c index 9503ab10f9b8f7a9735b9646d1e82d6c7295c981..5e9e3e1e9825f7abc251bbdd4830dd6c410277c6 100644 --- a/net/can/af_can.c +++ b/net/can/af_can.c @@ -902,6 +902,7 @@ static __init int can_init(void) static __exit void can_exit(void) { /* protocol unregister */ + dev_remove_pack(&canxl_packet); dev_remove_pack(&canfd_packet); dev_remove_pack(&can_packet); sock_unregister(PF_CAN);