From: Ben Hutchings <redacted>
Date: Wed, 14 Oct 2015 18:51:14 +0100
quoted hunk ↗ jump to hunk
Compile-tested only.
Signed-off-by: Ben Hutchings <redacted>
---
drivers/isdn/i4l/isdn_ppp.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/isdn/i4l/isdn_ppp.c b/drivers/isdn/i4l/isdn_ppp.c
index c4198fa..86f9abe 100644
--- a/drivers/isdn/i4l/isdn_ppp.c
+++ b/drivers/isdn/i4l/isdn_ppp.c
@@ -301,6 +301,8 @@ isdn_ppp_open(int min, struct file *file)
is->compflags = 0;
is->reset = isdn_ppp_ccp_reset_alloc(is);
+ if (!is->reset)
+ return -ENOMEM;
Ben, your email client has corrupted both of these patches.
Please fix this up and resubmit, thanks.