Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1337658

Re: [PATCH] mISDN: prevent possible NULL pointer dereference

From David Miller <davem@davemloft.net>
Newsgroups linux.kernel
Subject Re: [PATCH] mISDN: prevent possible NULL pointer dereference
Date 2016-02-18 21:10 +0100
Message-ID <r3D3J-2sr-19@gated-at.bofh.it> (permalink)
References <r3d9j-uB-73@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Anton Protopopov <a.s.protopopov@gmail.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@gmail.com>

Applied.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] mISDN: prevent possible NULL pointer dereference Anton Protopopov <a.s.protopopov@gmail.com> - 2016-02-17 17:30 +0100
  Re: [PATCH] mISDN: prevent possible NULL pointer dereference David Miller <davem@davemloft.net> - 2016-02-18 21:10 +0100

csiph-web