[PATCH v3 5/9] mtd: nand: tmio_nand.c: take in account partition parser types
From: Wolfram Sang <hidden>
Date: 2017-06-01 08:37:53
Also in:
linux-mmc, lkml
From: Wolfram Sang <hidden>
Date: 2017-06-01 08:37:53
Also in:
linux-mmc, lkml
- 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);
-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170601/b87a7b74/attachment.sig>