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 4a48ae0 commit cf1df6c0d4165d3e9cb385c8d8ff394cfc97086d
@Sascha Hauer Sascha Hauer authored on 31 Jul 2014
Showing 1 changed file
View
drivers/of/partition.c