net/bnxt: validate structs and pointers before use