Re: [PATCH v2 net 1/3] taprio: Fix kernel panic in taprio_destroy

2019-08-30 Thread Vinicius Costa Gomes
Vladimir Oltean writes: > taprio_init may fail earlier than this line: > > list_add(&q->taprio_list, &taprio_list); > > i.e. due to the net device not being multi queue. > > Attempting to remove q from the global taprio_list when it is not part > of it will result in a kernel panic. > > Fix

[PATCH v2 net 1/3] taprio: Fix kernel panic in taprio_destroy

2019-08-29 Thread Vladimir Oltean
taprio_init may fail earlier than this line: list_add(&q->taprio_list, &taprio_list); i.e. due to the net device not being multi queue. Attempting to remove q from the global taprio_list when it is not part of it will result in a kernel panic. Fix it by matching list_add and list_del be