Re: [PATCH] libertas_tf: avoid a null dereference in pointer priv

2020-05-06 Thread Kalle Valo
Colin King wrote: > From: Colin Ian King > > Currently there is a check if priv is null when calling lbtf_remove_card > but not in a previous call to if_usb_reset_dev that can also dereference > priv. Fix this by also only calling lbtf_remove_card if priv is null. > > It is noteable that

[PATCH] libertas_tf: avoid a null dereference in pointer priv

2020-05-01 Thread Colin King
From: Colin Ian King Currently there is a check if priv is null when calling lbtf_remove_card but not in a previous call to if_usb_reset_dev that can also dereference priv. Fix this by also only calling lbtf_remove_card if priv is null. It is noteable that there don't seem to be any bugs