1447042 Dereference before null check
There may be a null pointer dereference, or else the comparison against null is unnecessary.
In parse_kernel_probe_opts: All paths that lead to this null pointer comparison already dereference the pointer earlier (CWE-476)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I8202319d7f664bc20b2d6444ad296c03ed7dd628
address = strtoul(s_hex, NULL, 0);
*location = lttng_kernel_probe_location_address_create(address);
- if (!location) {
+ if (!*location) {
ERR("Failed to create symbol kernel probe location.");
goto error;
}