summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/net/slip/slip.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/net/slip/slip.c')
-rw-r--r--kernel/drivers/net/slip/slip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/drivers/net/slip/slip.c b/kernel/drivers/net/slip/slip.c
index 05387b1e2..a17d86a57 100644
--- a/kernel/drivers/net/slip/slip.c
+++ b/kernel/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);