diff options
| author | 2018-02-13 05:44:44 -0700 | |
|---|---|---|
| committer | 2018-02-13 17:09:50 -0700 | |
| commit | 815c6704bf9f1c59f3a6be380a4032b9c57b12f1 (patch) | |
| tree | f0accfbfe902638156509dd7f31f3fd597abf1c1 /net/unix/af_unix.c | |
| parent | nvme: fix the deadlock in nvme_update_formats (diff) | |
| download | linux-rng-815c6704bf9f1c59f3a6be380a4032b9c57b12f1.tar.xz linux-rng-815c6704bf9f1c59f3a6be380a4032b9c57b12f1.zip | |
nvme-pci: Remap CMB SQ entries on every controller reset
The controller memory buffer is remapped into a kernel address on each
reset, but the driver was setting the submission queue base address
only on the very first queue creation. The remapped address is likely to
change after a reset, so accessing the old address will hit a kernel bug.
This patch fixes that by setting the queue's CMB base address each time
the queue is created.
Fixes: f63572dff1421 ("nvme: unmap CMB and remove sysfs file in reset path")
Reported-by: Christian Black <christian.d.black@intel.com>
Cc: Jon Derrick <jonathan.derrick@intel.com>
Cc: <stable@vger.kernel.org> # 4.9+
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
