of_partition: devfs_add_partition returns an error pointer
Check for the return value of devfs_add_partition with IS_ERR. Otherwise we dereference a NULL pointer when devfs_add_partition fails. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> |
---|
|
drivers/of/partition.c |
---|