Files
linux/drivers/gpio
Sergei Shtylyov d62668e1dd gpiolib: fix device_create() result check
In case of failure, device_create() returns not NULL but the error code.
The current code checks for non-NULL though which causes kernel oops in
sysfs_create_group() when device_create() fails.  Check for error using
IS_ERR() and propagate the error value using PTR_ERR() instead of fixed
-ENODEV code returned now...

Signed-off-by: Sergei Shtylyov <[email protected]>
Cc: David Brownell <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2009-11-12 07:26:00 -08:00
..
2009-09-23 07:39:43 -07:00
2009-09-23 07:39:46 -07:00
2009-07-12 12:22:34 -07:00
2009-09-17 09:47:01 +02:00