Re: [PATCH net 1/2] isdn_ppp: Add checks for allocation failure in isdn_ppp_open()
From: David Miller <davem@davemloft.net>
Date: 2015-10-16 07:46:06
From: David Miller <davem@davemloft.net>
Date: 2015-10-16 07:46:06
From: Ben Hutchings <redacted> Date: Wed, 14 Oct 2015 18:51:14 +0100
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.