[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180905063438.qpb6fpexq6rz6rxl@sirius.home.kraxel.org>
Date: Wed, 5 Sep 2018 08:34:38 +0200
From: Gerd Hoffmann <kraxel@...hat.com>
To: "Gustavo A. R. Silva" <gustavo@...eddedor.com>
Cc: Sumit Semwal <sumit.semwal@...aro.org>,
linux-media@...r.kernel.org, linaro-mm-sig@...ts.linaro.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] dma-buf/udmabuf: Fix NULL pointer dereference in
udmabuf_create
On Tue, Sep 04, 2018 at 02:07:49PM -0500, Gustavo A. R. Silva wrote:
> There is a potential execution path in which pointer memfd is NULL when
> passed as argument to fput(), hence there is a NULL pointer dereference
> in fput().
>
> Fix this by null checking *memfd* before calling fput().
>
> Addresses-Coverity-ID: 1473174 ("Explicit null dereferenced")
> Fixes: fbb0de795078 ("Add udmabuf misc device")
> Signed-off-by: Gustavo A. R. Silva <gustavo@...eddedor.com>
Pushed to drm-misc-next.
thanks,
Gerd
Powered by blists - more mailing lists