Re: [PATCH v3 5/9] mtd: nand: tmio_nand.c: take in account partition parser types

Wolfram Sang
2017-06-01T08:38:13Z

[-- Attachment #1: Type: text/plain, Size: 387 bytes --]

> - 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]