[PATCH 5.1 197/371] bpf, libbpf, smatch: Fix potential NULL pointer dereference