> - retval = mtd_device_parse_register(mtd, NULL, NULL, > + retval = mtd_device_parse_register(mtd, > + data->types ? data->types : NULL, This is superfluous. You want to check against 'data' instead as it is done below. Otherwis you might get a NULL pointer dereference. > + NULL, > data ? data->partition : NULL, > data ? data->num_partitions : 0);
Attachment:
signature.asc
Description: PGP signature