049ceac308
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 reported that the
null pointer dereference has ever occurred, so I'm not sure if the null
check is required, but since we're doing a null check anyway it should
be done for both function calls.
Addresses-Coverity: ("Dereference before null check")
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
cmd.c | ||
deb_defs.h | ||
if_usb.c | ||
if_usb.h | ||
libertas_tf.h | ||
main.c |