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:
41fda9c
)
tty: ipwireless: check ppp register worked
author
Alan Cox
<
[email protected]
>
Mon, 17 Sep 2012 11:01:40 +0000
(12:01 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Mon, 17 Sep 2012 11:45:30 +0000
(
04:45
-0700)
Otherwise we start trying to use a bogus channel - ungood.
Signed-off-by: Alan Cox <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/tty/ipwireless/network.c
patch
|
blob
|
history
diff --git
a/drivers/tty/ipwireless/network.c
b/drivers/tty/ipwireless/network.c
index 57c8b481113f79fd01c96ddbcde3ca013fc6cb5b..d2af155dec8b91e1f915feb8b6c9f8be26f9e815 100644
(file)
--- a/
drivers/tty/ipwireless/network.c
+++ b/
drivers/tty/ipwireless/network.c
@@
-274,7
+274,12
@@
static void do_go_online(struct work_struct *work_go_online)
network->xaccm[0] = ~0U;
network->xaccm[3] = 0x60000000U;
network->raccm = ~0U;
- ppp_register_channel(channel);
+ if (ppp_register_channel(channel) < 0) {
+ printk(KERN_ERR IPWIRELESS_PCCARD_NAME
+ ": unable to register PPP channel\n");
+ kfree(channel);
+ return;
+ }
spin_lock_irqsave(&network->lock, flags);
network->ppp_channel = channel;
}