Andy Shevchenko a46d988409 powerpc/pseries: handle nodes without '/'
In case we have node without '/' strrchr() returns NULL which might lead to
crash. Replace strrchr() by kbasename() and modify condition to avoid such
behaviour.

Suggested-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2015-10-05 21:11:27 +11:00
..
2015-09-25 11:16:53 -07:00
2015-09-05 00:56:51 +02:00
2015-09-25 11:16:53 -07:00
2015-09-25 11:16:53 -07:00
2015-09-08 18:16:02 +08:00