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


Groups > linux.kernel > #1635206

Re: [PATCH] brd: fix uninitialized use of brd->dax_dev

From Dan Williams <dan.j.williams@intel.com>
Newsgroups linux.kernel
Subject Re: [PATCH] brd: fix uninitialized use of brd->dax_dev
Date 2017-05-03 20:50 +0200
Message-ID <tD7vA-Hg-13@gated-at.bofh.it> (permalink)
References <tD22S-5vI-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, May 3, 2017 at 5:56 AM, Gerald Schaefer
<gerald.schaefer@de.ibm.com> wrote:
> commit 1647b9b9 "brd: add dax_operations support" introduced the allocation
> and freeing of a dax_device, but the allocated dax_device is not stored
> into the brd_device, so brd_del_one() will eventually operate on an
> uninitialized brd->dax_dev.
>
> Fix this by storing the allocated dax_device to brd->dax_dev.
>
> Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>

Thanks Gerald, I added this to the dax_device conversion for 4.12.

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


Thread

[PATCH] brd: fix uninitialized use of brd->dax_dev Gerald Schaefer <gerald.schaefer@de.ibm.com> - 2017-05-03 15:00 +0200
  Re: [PATCH] brd: fix uninitialized use of brd->dax_dev Dan Williams <dan.j.williams@intel.com> - 2017-05-03 20:50 +0200

csiph-web