projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f415c41
)
pps: fix incorrect verdict check
author
Joonwoo Park
<
[email protected]
>
Wed, 26 Aug 2009 21:29:18 +0000
(14:29 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 27 Aug 2009 03:06:52 +0000
(20:06 -0700)
Fix incorrect verdict check and returns error if device_create failed,
otherwise driver triggers kernel oops.
Signed-off-by: Joonwoo Park<
[email protected]
>
Cc: Rodolfo Giometti <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/pps/pps.c
patch
|
blob
|
history
diff --git
a/drivers/pps/pps.c
b/drivers/pps/pps.c
index ac8cc8cea1e386425a8df7847f57f5737d447b11..fea17e7805e9d5e846998c16d965711628e4bc8b 100644
(file)
--- a/
drivers/pps/pps.c
+++ b/
drivers/pps/pps.c
@@
-244,7
+244,7
@@
int pps_register_cdev(struct pps_device *pps)
}
pps->dev = device_create(pps_class, pps->info.dev, pps->devno, NULL,
"pps%d", pps->id);
- if (
err
)
+ if (
IS_ERR(pps->dev)
)
goto del_cdev;
dev_set_drvdata(pps->dev, pps);