[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160218.150004.624016127272800990.davem@davemloft.net>
Date: Thu, 18 Feb 2016 15:00:04 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: a.s.protopopov@...il.com
Cc: isdn@...ux-pingi.de, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mISDN: prevent possible NULL pointer dereference
From: Anton Protopopov <a.s.protopopov@...il.com>
Date: Wed, 17 Feb 2016 11:19:56 -0500
> A return value of the bchannel_get_rxbuf() function is compared with the
> positive ENOMEM value instead of the negative -ENOMEM value to detect a
> memory allocation problem. Thus, after a possible memory allocation
> failure the bc->bch.rx_skb will be NULL which will lead to a NULL
> pointer dereference.
>
> Signed-off-by: Anton Protopopov <a.s.protopopov@...il.com>
Applied.
Powered by blists - more mailing lists