summaryrefslogtreecommitdiffstats
path: root/fs/cachefiles/rdwr.c
diff options
context:
space:
mode:
authorEmil Goode2012-07-30 23:42:51 +0200
committerLinus Torvalds2012-07-31 02:25:21 +0200
commit668f06b9fb846ecedb73964ca5dd95ce441707be (patch)
tree973d6e63af978ae1fdafdf6ec273cafaf0a2eb35 /fs/cachefiles/rdwr.c
parenttaskstats: check nla_reserve() return (diff)
downloadkernel-qcow2-linux-668f06b9fb846ecedb73964ca5dd95ce441707be.tar.gz
kernel-qcow2-linux-668f06b9fb846ecedb73964ca5dd95ce441707be.tar.xz
kernel-qcow2-linux-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 <emilgoode@gmail.com> Acked-by: Devendra Naga <devendra.aaru@gmail.com> Cc: Alexander Gordeev <lasaine@lvk.cs.msu.su> Cc: Rodolfo Giometti <giometti@enneenne.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/cachefiles/rdwr.c')
0 files changed, 0 insertions, 0 deletions