projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[ATM]: When proc_create() fails, do some error handling work and return -ENOMEM.
[deliverable/linux.git]
/
net
/
atm
/
lec.c
diff --git
a/net/atm/lec.c
b/net/atm/lec.c
index 0e450d12f0358651d9fd5bb0ecada2461c7960f8..a2efa7ff41f128a665172bc593eeed557163ac63 100644
(file)
--- a/
net/atm/lec.c
+++ b/
net/atm/lec.c
@@
-1250,6
+1250,10
@@
static int __init lane_module_init(void)
struct proc_dir_entry *p;
p = proc_create("lec", S_IRUGO, atm_proc_root, &lec_seq_fops);
+ if (!p) {
+ printk(KERN_ERR "Unable to initialize /proc/net/atm/lec\n");
+ return -ENOMEM;
+ }
#endif
register_atm_ioctl(&lane_ioctl_ops);
This page took
0.02525 seconds
and
5
git commands to generate.