]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
libnvdimm, btt: ensure that flags were also unchanged during a map_read
authorVishal Verma <vishal.l.verma@intel.com>
Thu, 31 Aug 2017 01:36:00 +0000 (19:36 -0600)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 21 Sep 2017 16:46:57 +0000 (11:46 -0500)
commitb79a9312f044da2408713988a798ec9491e40f61
tree96a5931f1aaea313a2d87fcd5ec0fc74a172e6d6
parent45f43c23a1c179ed0a9b0ac909d7355495b2311d
libnvdimm, btt: ensure that flags were also unchanged during a map_read

BugLink: http://bugs.launchpad.net/bugs/1704350
In btt_map_read, we read the map twice to make sure that the map entry
didn't change after we added it to the read tracking table. In
anticipation of expanding the use of the error bit, also make sure that
the error and zero flags are constant across the two map reads.

Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 1398199d849047c59acef0c04e550b47bb9b4be6)
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/nvdimm/btt.c