diff options
| author | Emil Goode <[email protected]> | 2012-07-30 21:42:51 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2012-07-31 00:25:21 +0000 |
| commit | 668f06b9fb846ecedb73964ca5dd95ce441707be (patch) | |
| tree | 973d6e63af978ae1fdafdf6ec273cafaf0a2eb35 /lib/notifier-error-inject.h | |
| parent | taskstats: check nla_reserve() return (diff) | |
| download | kernel-668f06b9fb846ecedb73964ca5dd95ce441707be.tar.gz kernel-668f06b9fb846ecedb73964ca5dd95ce441707be.zip | |
pps: return PTR_ERR on error in device_create
We should return PTR_ERR if the call to the device_create function fails.
Without this patch we instead return the value from a successful call to
cdev_add if the call to device_create fails.
Signed-off-by: Emil Goode <[email protected]>
Acked-by: Devendra Naga <[email protected]>
Cc: Alexander Gordeev <[email protected]>
Cc: Rodolfo Giometti <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/notifier-error-inject.h')
0 files changed, 0 insertions, 0 deletions
