git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ppp, slip: Validate VJ compression slot parameters completely
[pandora-kernel.git]
/
drivers
/
net
/
slip
/
slip.c
diff --git
a/drivers/net/slip/slip.c
b/drivers/net/slip/slip.c
index
ba08341
..
1a6e2ea
100644
(file)
--- a/
drivers/net/slip/slip.c
+++ b/
drivers/net/slip/slip.c
@@
-164,7
+164,7
@@
static int sl_alloc_bufs(struct slip *sl, int mtu)
if (cbuff == NULL)
goto err_exit;
slcomp = slhc_init(16, 16);
- if (
slcomp == NULL
)
+ if (
IS_ERR(slcomp)
)
goto err_exit;
#endif
spin_lock_bh(&sl->lock);