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>
1 parent 2fd4f0f commit 79fa5783b87d276e16fae7af0c053a632c5a1381
@Sascha Hauer Sascha Hauer authored on 31 Jul 2014
Showing 1 changed file
View
drivers/of/partition.c