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:
a9a5524
)
[PATCH] pcmcia: properly handle all errors of register_chrdev
author
Dominik Brodowski
<
[email protected]
>
Mon, 27 Jun 2005 23:29:00 +0000
(16:29 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 28 Jun 2005 01:03:22 +0000
(18:03 -0700)
register_chrdev() can return errors (negative) other then -EBUSY, so check
for any negative error code.
Signed-off-by: Randy Dunlap <
[email protected]
>
Signed-off-by: Dominik Brodowski <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/pcmcia/pcmcia_ioctl.c
patch
|
blob
|
history
diff --git
a/drivers/pcmcia/pcmcia_ioctl.c
b/drivers/pcmcia/pcmcia_ioctl.c
index 3084d8a3ba411040321a9e085e374476eba512d9..b883bc151ed00f58b9be03c994974b7e2aaca0cb 100644
(file)
--- a/
drivers/pcmcia/pcmcia_ioctl.c
+++ b/
drivers/pcmcia/pcmcia_ioctl.c
@@
-760,9
+760,9
@@
void __init pcmcia_setup_ioctl(void) {
/* Set up character device for user mode clients */
i = register_chrdev(0, "pcmcia", &ds_fops);
- if (i
== -EBUSY
)
+ if (i
< 0
)
printk(KERN_NOTICE "unable to find a free device # for "
- "Driver Services
\n"
);
+ "Driver Services
(error=%d)\n", i
);
else
major_dev = i;